You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@xml.apache.org by Ed Keen <ed...@interactiveportal.com> on 2001/03/16 15:43:45 UTC

how do I deserialize a Vector?

Since the VectorSerializer does not support deserialization, how do I
deserialize something returned to me in this format?  Here is the fragment
from my DeploymentDescriptor.xml:

    <isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
             xmlns:x="urn:xml-test-soap" qname="x:vector"
             javaType="java.util.Vector"
 
java2XMLClassName="org.apache.soap.encoding.soapenc.VectorSerializer"/>


Note that I did not include the "xml2JavaClassName" attribute, because
VectorSerializer does not support deserialization.  In my client, when I
call 

	Response resp = call.invoke(url, "");

It produces the following SOAPException:

	FaultCode:  SOAP-ENV:Client
	Message:  No Deserializer found to deserialize a
'urn:xml-test-soap:vector' using encoding style
'http://schemas.xmlsoap.org/soap/encoding/'.

At this point, my Response object is null, so I cannot even manually parse
the result that was sent back to the client.

Thanks,
Ed


Re: how do I deserialize a Vector?

Posted by Glen Daniels <gd...@allaire.com>.
Ed:

If you're working with 2.1, Vectors will be serialized/deserialized for you
automatically, without the need for any type mappings in your
DeploymentDescriptor.  Try pulling the isd:map out and see if that works.

        --Glen

P.S.  All and sundry : I was too busy this weekend to get the
Vector/SOAPArray changes done, but I am working on it.

----- Original Message -----
From: "Ed Keen" <ed...@interactiveportal.com>
To: <so...@xml.apache.org>
Sent: Friday, March 16, 2001 9:43 AM
Subject: how do I deserialize a Vector?


> Since the VectorSerializer does not support deserialization, how do I
> deserialize something returned to me in this format?  Here is the fragment
> from my DeploymentDescriptor.xml:
>
>     <isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
>              xmlns:x="urn:xml-test-soap" qname="x:vector"
>              javaType="java.util.Vector"
>
> java2XMLClassName="org.apache.soap.encoding.soapenc.VectorSerializer"/>
>
>
> Note that I did not include the "xml2JavaClassName" attribute, because
> VectorSerializer does not support deserialization.  In my client, when I
> call
>
> Response resp = call.invoke(url, "");
>
> It produces the following SOAPException:
>
> FaultCode:  SOAP-ENV:Client
> Message:  No Deserializer found to deserialize a
> 'urn:xml-test-soap:vector' using encoding style
> 'http://schemas.xmlsoap.org/soap/encoding/'.
>
> At this point, my Response object is null, so I cannot even manually parse
> the result that was sent back to the client.
>
> Thanks,
> Ed
>