users@jax-rpc.java.net

Re: My Webservice methods should return arrays of Databeans. The client uses Dynamic Proxies (JAX-RPC)

From: kathy walsh <Kathleen.Walsh_at_Sun.COM>
Date: Fri, 10 Sep 2004 10:26:18 -0400

Orlando-
I have sent you a solution to your specific problem
offline.

I will soon post an example to jaxrpc on java.net.
Kathy

Orlando wrote:

> Hi
>
> i intend to create a web service using JAX-RPC.
> Some Methods have to return complex datatypes. One Method should
> return an array of a user defined class (Bean).
>
> I use the ant tool to create a .war File. So far everything works.
>
> The Client is using dymanic proxies. While running the client and
> calling the method mentioned above, i recieve the following error:
>
> deserialization error: deserialization error:
> java.lang.InstantiationException: [Lcom.gacs.api.UserData;
> at
> com.sun.xml.rpc.encoding.SOAPDeserializationContext.deserializeMultiRefObjects(SOAPDeserializationContext.java:90)
> at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:226)
> .
>
> .
>
> .
>
>
>
>
>
> What i found out is, that it isn't easy to create Web Services using
> Dynamic Proxis when some methods return arrays of databeans.
>
> Does anyone know how to get this problem solved ,
> Or how to create those Deserialisation Classes and register them.
> THANX
>
>
>
>
>
>
>