axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cun Yong Tan" <>
Subject RE: Wrapped document/literal support in Axis 1.0
Date Fri, 25 Oct 2002 14:32:23 GMT

Curious to see what would happen if the roles were reversed,
I created a .NET service (defaults to wrapped doc/lit) with
a method that accepts a single parameter of string[]. Then
used WSDL2Java to create Axis client.

The method signature that WSDL2Java produced for the method
is a bean that has a single property of a String[] instead of
a String[] by itself.

It does work but the wrapper bean makes programming rather

>From: "Anand Hatwalne" <>
>To: <>
>Subject: RE: Wrapped document/literal support in Axis 1.0 Date: Fri, 25 Oct 
>2002 10:26:39 +0530
>This exactly is the problem I am facing. .NET fails to parse such
>WSDL.(complaining that the WSDL should have not have specified the
>Why would a document based service in Axis still use encoding?
>Anyone knows the solution?
>-----Original Message-----
>From: Cun Yong Tan []
>Sent: Friday, October 25, 2002 2:36 AM
>Subject: Wrapped document/literal support in Axis 1.0
>According to the Axis 1.0 user guide, it is possible to create
>a wrapped document/literal service. It says that Axis will bind
>the Java representation to the XML.
>Is my assumption correct that the service class will look exactly
>the same as it would be if it were rpc/encoded ?
>I tried to create a wrapped doc/lit service with WSDD line:
><service name="Test" provider="java:RPC" style="wrapped"> ...
>The doc didn't specify which provider to use so I assumed it was RPC.
>The service has a method that accepts a String array. The WSDL
>produced by the service seems to be wrong because it generated this
>type for the String array:
><complexType name="ArrayOf_xsd_string">
>   <complexContent>
>     <restriction base="soapenc:Array">
>       <attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:string[]"/>
>     </restriction>
>   </complexContent>
>The problem is that it still uses SOAP encoding to define an array.
>So .NET's wsdl.exe complains about it.
>Is wrapped doc/lit fully supported in Axis 1.0 ?
>Or am I not configuring something right in the WSDD or whatever ?

Protect your PC - get VirusScan Online

View raw message