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 :

Thanks for the users of this sample.

WSDD-Server Definition

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

</service>

WSDL File

<element name="get4xHelloWorld">

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

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

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

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

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

</wsdl:operation>

SOAP RESPONSE MESSAGE

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:Envelope>

WSDD-Client Definition

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

</deployment>

Error Message

AxisFault

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