You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org> on 2005/04/25 00:14:29 UTC

[jira] Resolved: (AXIS-464) [doc/lit] WSDL2Java produces wrapper bean for arrays for WSDL from wrapped doc/lit service

     [ http://issues.apache.org/jira/browse/AXIS-464?page=all ]
     
Davanum Srinivas resolved AXIS-464:
-----------------------------------

     Assign To:     (was: Axis Developers Mailing List)
    Resolution: Fixed

closing bug as per tom's prev comments.

-- dims

> [doc/lit] WSDL2Java produces wrapper bean for arrays for WSDL from wrapped doc/lit service
> ------------------------------------------------------------------------------------------
>
>          Key: AXIS-464
>          URL: http://issues.apache.org/jira/browse/AXIS-464
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.0
>  Environment: Operating System: Windows NT/2K
> Platform: All
>     Reporter: Cun Yong Tan
>  Attachments: encode.wsdl
>
> 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 
> inconvenient.
> (This bug is also reproducible in nightly build of 10-19-2002)
> ======================================================================
> Here is the WSDL produced by .NET.
> =======================================================================
> <?xml version="1.0" encoding="utf-8"?>
> <definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" 
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
> xmlns:s="http://www.w3.org/2001/XMLSchema" 
> xmlns:s0="http://www.develop.com/webservices/" 
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
> xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" 
> xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" 
> targetNamespace="http://www.develop.com/webservices/" 
> xmlns="http://schemas.xmlsoap.org/wsdl/">
>   <types>
>     <s:schema elementFormDefault="qualified" 
> targetNamespace="http://www.develop.com/webservices/">
>       <s:element name="Decode">
>         <s:complexType>
>           <s:sequence>
>             <s:element minOccurs="0" maxOccurs="1" name="inMsg" 
> type="s:string" />
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:element name="DecodeResponse">
>         <s:complexType>
>           <s:sequence>
>             <s:element minOccurs="0" maxOccurs="1" name="DecodeResult" 
> type="s:string" />
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:element name="Encode">
>         <s:complexType>
>           <s:sequence>
>             <s:element minOccurs="0" maxOccurs="1" name="inMsg" 
> type="s:string" />
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:element name="EncodeResponse">
>         <s:complexType>
>           <s:sequence>
>             <s:element minOccurs="0" maxOccurs="1" name="EncodeResult" 
> type="s:string" />
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:element name="echoStringArray">
>         <s:complexType>
>           <s:sequence>
>             <s:element minOccurs="0" maxOccurs="1" name="theArray" 
> type="s0:ArrayOfString" />
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:complexType name="ArrayOfString">
>         <s:sequence>
>           <s:element minOccurs="0" maxOccurs="unbounded" name="string" 
> nillable="true" type="s:string" />
>         </s:sequence>
>       </s:complexType>
>       <s:element name="echoStringArrayResponse">
>         <s:complexType>
>           <s:sequence>
>             <s:element minOccurs="0" maxOccurs="1" name="echoStringArrayResult" 
> type="s0:ArrayOfString" />
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>     </s:schema>
>   </types>
>   <message name="DecodeSoapIn">
>     <part name="parameters" element="s0:Decode" />
>   </message>
>   <message name="DecodeSoapOut">
>     <part name="parameters" element="s0:DecodeResponse" />
>   </message>
>   <message name="EncodeSoapIn">
>     <part name="parameters" element="s0:Encode" />
>   </message>
>   <message name="EncodeSoapOut">
>     <part name="parameters" element="s0:EncodeResponse" />
>   </message>
>   <message name="echoStringArraySoapIn">
>     <part name="parameters" element="s0:echoStringArray" />
>   </message>
>   <message name="echoStringArraySoapOut">
>     <part name="parameters" element="s0:echoStringArrayResponse" />
>   </message>
>   <portType name="EncoderSoap">
>     <operation name="Decode">
>       <input message="s0:DecodeSoapIn" />
>       <output message="s0:DecodeSoapOut" />
>     </operation>
>     <operation name="Encode">
>       <input message="s0:EncodeSoapIn" />
>       <output message="s0:EncodeSoapOut" />
>     </operation>
>     <operation name="echoStringArray">
>       <input message="s0:echoStringArraySoapIn" />
>       <output message="s0:echoStringArraySoapOut" />
>     </operation>
>   </portType>
>   <binding name="EncoderSoap" type="s0:EncoderSoap">
>     <soap:binding transport="http://schemas.xmlsoap.org/soap/http" 
> style="document" />
>     <operation name="Decode">
>       <soap:operation soapAction="http://www.develop.com/webservices/Decode" 
> style="document" />
>       <input>
>         <soap:body use="literal" />
>       </input>
>       <output>
>         <soap:body use="literal" />
>       </output>
>     </operation>
>     <operation name="Encode">
>       <soap:operation soapAction="http://www.develop.com/webservices/Encode" 
> style="document" />
>       <input>
>         <soap:body use="literal" />
>       </input>
>       <output>
>         <soap:body use="literal" />
>       </output>
>     </operation>
>     <operation name="echoStringArray">
>       <soap:operation 
> soapAction="http://www.develop.com/webservices/echoStringArray" 
> style="document" />
>       <input>
>         <soap:body use="literal" />
>       </input>
>       <output>
>         <soap:body use="literal" />
>       </output>
>     </operation>
>   </binding>
>   <service name="Encoder">
>     <port name="EncoderSoap" binding="s0:EncoderSoap">
>       <soap:address location="http://localhost/NET/docLiteral/encode.asmx" />
>     </port>
>   </service>
> </definitions>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira