Dear George, The solution you have mentioned is a very custom solution and would not be used under normal circumstances. If you were to give your service to a client, they would not be able to use it until they understood the XML being passed as a string. With well-defined data constructs (strongly-typed) in the WSDL, a generated client will work out-of-the-box.
The point of the WSDL, SOAP, XML Schema, and SOAP stacks is to handle all serialization/deserialization for you based on the data structures (schemas) defined in the WSDL. Thanks, Nadeem -----Original Message----- From: George H [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2008 2:52 PM To: [email protected] Subject: Re: How to return Object[] from axis2 I've dealt with this problem before and I found a pretty nice solution. Just make your webservices return String and use the XStream library to serialize and deserialize your java objects (any object) to an xml string. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
