Differences between revisions 1 and 2
Revision 1 as of 2005-02-03 17:15:00
Size: 5717
Editor: prx0001
Comment: Initial Revision.
Revision 2 as of 2009-09-20 22:47:51
Size: 5717
Editor: localhost
Comment: converted to 1.6 markup
No differences found!

This page was created to explain the using of ArrayDeserializer in Web Services.

Here is a sample for the definition of a Web Service with a method using Array of String.

A method String[] get4xHelloWorld() has been defined to return an array of String containing 4 string for a Hello World in 4 languages. The definition of the WSDD file seems to be correct, the client java file are correctly generated with the tool WSDL2Java from Axis, and the server returns a SOAP message coresponding to the answer to the request with the 4 languages in an array. But the client can't find a good deserializer.

If you have an answer for this problem, you can modified this page to identify the correct definition of this sample. NB : This seems not be a problem with the version of Axis or woth the Weblogic server.

Informations :

  • - Server : BEA Weblogic 8.1 SP2 - Axis Server-Side : Axis 1.2 Beta2 - Axis Client-Side : Axis 1.2 Beta2

Thanks for the users of this sample.

WSDD-Server Definition

<service name="WSTester" provider="java:RPC" style="wrapped" >



<element name="get4xHelloWorld">

  • <complexType/>

</element> ... <element name="get4xHelloWorldResponse">

  • <complexType>

    • <sequence>

      • <element maxOccurs="unbounded" name="get4xHelloWorldReturn" type="xsd:string"/>



</element> ... <wsdl:message name="get4xHelloWorldRequest">

  • <wsdl:part element="impl:get4xHelloWorld" name="parameters"/>

</wsdl:message> ... <wsdl:message name="get4xHelloWorldResponse">

  • <wsdl:part element="impl:get4xHelloWorldResponse" name="parameters"/>

</wsdl:message> ... <wsdl:operation name="get4xHelloWorld">

  • <wsdl:input message="impl:get4xHelloWorldRequest" name="get4xHelloWorldRequest"/> <wsdl:output message="impl:get4xHelloWorldResponse" name="get4xHelloWorldResponse"/>

</wsdl:operation> ... <wsdl:operation name="get4xHelloWorld">

  • <wsdlsoap:operation soapAction=""/> <wsdl:input name="get4xHelloWorldRequest">

    </wsdl:input> <wsdl:output name="get4xHelloWorldResponse">




HTTP/1.1 200 OK Date: Thu, 03 Feb 2005 15:20:18 GMT Server: WebLogic Server 8.1 SP2 Fri Dec 5 15:01:51 PST 2003 316284 Content-Type: text/xml; charset=utf-8 Connection: Close <?xml version="1.0" encoding="utf-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

  • <soapenv:Header> </soapenv:Header> <soapenv:Body>

    • <get4xHelloWorldResponse xmlns="http://myNamespace.com/service">

      • <get4xHelloWorldReturn xsi:type="ns2:ArrayOfstring" xmlns:ns2="http://myNamespace.com/java">

        • <item xsi:type="xsd:string" xmlns="">Hello World</item> <item xsi:type="xsd:string" xmlns="">Bonjour Monde</item> <item xsi:type="xsd:string" xmlns="">Guten Tag Welt</item> <item xsi:type="xsd:string" xmlns="">Buongiorno Mondo</item>





WSDD-Client Definition

<?xml version="1.0" encoding="UTF-8"?> <deployment name="wbsclient"

  • <globalConfiguration> </globalConfiguration>

    <transport name="java" pivot="java:org.apache.axis.transport.java.JavaSender"/> <transport name="http" pivot="java:org.apache.axis.transport.http.HTTPSender">

    • <requestFlow> </requestFlow> <responseFlow> </responseFlow>


    <transport name="local" pivot="java:org.apache.axis.transport.local.LocalSender"/>


Error Message


FrontPage/Axis/AxisSamples/AxisSamplesArraySerializer (last edited 2009-09-20 22:47:51 by localhost)