users@jax-rpc.java.net

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

From: Orlando <orlando_at_bernzoo.com>
Date: Sun, 5 Sep 2004 12:43:10 +0200

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.deserializeMultiRefO
bjects(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