Hi, I'm going round in circles trying to serialize an array of beans.

First I tried using the Apache Bean Serializer, specifying it in the
deployment descriptor; this worked for one bean, but not for an array.

I then wrapped the array in another class, then tried to write my own
serializer for the wrapper class, and refer to this serializer in the
deployment descriptor.

This produces an error on post whenever I change it to point from anything
but the apache serializers.

I am inspecting the XML returned from the soap servlet, the output is shown
below.

On the server end, is using the deployment descriptor (e.g. xml2java...
attribute) sufficent to successfully invoke my serializer when returning a
reply?

>From the client end I am using perl SOAP::Lite to invoke the function.  On
the server end I am using the StatelessSessionBean provider to invoke a
method whose return type is the object array.

Has anyone managed to write and make work an object array serializer on
Apache SOAP 2.2.  If so, do you have any code/class/deployment descriptors I
could look at?

Thanks,

Andrew

12:00:18:362|15|S|010: <SOAP-ENV:Body>
12:00:18:362|15|S|011: <SOAP-ENV:Fault>
12:00:18:362|15|S|012: <faultcode>SOAP-ENV:Server.Exception:</faultcode>
12:00:18:362|15|S|013:
<faultstring>org/apache/soap/util/xml/Serializer</faultstring>
12:00:18:362|15|S|014: <faultactor>/soap/servlet/rpcrouter</faultactor>
12:00:18:362|15|S|015: </SOAP-ENV:Fault>
12:00:18:362|15|S|016:
12:00:18:362|15|S|017: </SOAP-ENV:Body>

________________________________________________________________________

 Andrew Simpson, SpeechWorks International, Inc.
 695 Atlantic Avenue, Boston, MA 02111, U.S.A.
 Voice: +1 617 428 4444,  Fax: +1 617 757 2211
 [EMAIL PROTECTED]  http://www.speechworks.com


Reply via email to