[Mono-devel-list] web services, custom types, and XmlInclude
Kris Bradley
krisolav at hotmail.com
Tue Feb 17 11:28:51 EST 2004
Great, thank you. The bug is here:
http://bugzilla.ximian.com/show_bug.cgi?id=54461
----Original Message Follows----
From: Lluis Sanchez <lluis at ximian.com>
Reply-To: lluis at ximian.com
To: Kris Bradley <krisolav at hotmail.com>
CC: mono-devel-list at lists.ximian.com
Subject: Re: [Mono-devel-list] web services, custom types, and XmlInclude
Date: Tue, 17 Feb 2004 12:28:33 +0100
Hi!
This is not currently supported. If you file a bug report in Bugzilla
with this sample I'll try to fix it.
Thanks,
Lluis.
On dt, 2004-02-17 at 00:22, Kris Bradley wrote:
> Id like to have a web service method that returns an array of custom
types.
> I wrote a simple test that works under MS .NET, but not under Mono.
For
> example:
>
> [WebMethod]
> [XmlInclude(typeof(ComplexThing))]
> public ArrayList foo()
> {
> ArrayList list = new ArrayList();
> list.Add(new ComplexThing("abc", 1.1f));
> list.Add(new ComplexThing("xyz", 2.0f));
> return list;
> }
>
> The code for ComplexThing is:
>
> public class ComplexThing
> {
> public ComplexThing() {}
>
> public ComplexThing(string name, float val)
> {
> this.name = name;
> this.val = val;
> }
> public string name;
> public float val;
> }
>
> When I run this under Mono, I get the error:
>
> Invalid type: TestService.ComplexThing
>
> Is this not supported? Is there a better way to do this?
>
> Thanks,
> - Kris
>
> _________________________________________________________________
> Keep up with high-tech trends here at "Hook'd on Technology."
> http://special.msn.com/msnbc/hookedontech.armx
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
_______________________________________________
Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list
_________________________________________________________________
Take off on a romantic weekend or a family adventure to these great U.S.
locations. http://special.msn.com/local/hotdestinations.armx
More information about the Mono-devel-list
mailing list