What data types are SOAP serializable?

xmail123_at_yahoo.com
Date: 06/18/04


Date: Fri, 18 Jun 2004 00:17:44 GMT

Hi,

As was pointed out whatever you return from a WebMethod needs to be
serializable to SOAP. An ArrayList is not serializable. I will be
needing to return other data types from web methods. Is there a
document, or can some one list those types that are not serializable
and the syntax for converting them?

Thanks

>Whatever you return from a WebMethod needs to be serializable to SOAP. The
>type ArrayList is not serializable to SOAP so it gets converted to an array
>of objects (object[]) which is SOAP serializable (provided the objects in
>the array are SOAP serializable).
>
>> 2. What do I need to do to get an ArrayList on the receiving side? I
>> need to be able to resize the array. An Array can't be resized, the
>> ArrayList can.
>
>ArrayList al = new ArrayList(WSR.ReadHistory(ItemPK));
>
>Regards,
>Sami



Relevant Pages

  • Problem when switching from SoapClient to WebServicesClientProtocol
    ... I have a working C# class library that acts as a soap client. ... over the formatting of the soap body: ... It all boils down to the "this.invoke" method requiring an object array ... //populate the test widgets array ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: How to do: Web Services returning a class that inherits arrayl
    ... Array types can be defined in the soap schema. ... I have a class called CartLine and I try to return this class in a Web ... The proxy reference doesn't contain any information even though I use the ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: What data types are SOAP serializable?
    ... it's pretty simple to create an ArrayList from an array (use the constructor ... > needing to return other data types from web methods. ... > and the syntax for converting them? ... >>Whatever you return from a WebMethod needs to be serializable to SOAP. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Apache Axis - Soap
    ... I have read some tutorial to Soap, but I dont get the point. ... My "simple" Problem is to turn the XML Soap Document into an Array ...
    (comp.lang.java.programmer)
  • Re: Different SOAP Requests vs
    ... is sending is different then what the service is expecting. ... Soap bug as i found others with issues so you have to use the ... $params = array( ... The issue is that the service its being sent to doesn't like tags ...
    (comp.lang.php)