The WSDL looks good. I think this is caused by Axis's preference to
return nulls rather than empty elements. You might try modifying your
array definition to this:

  <element name="getArrayResponse">
   <complexType>
    <sequence>
     <element name="getArrayReturn" type="xsd:string"
        minOccurs="0" maxOccurs="unbounded" nillable="false"/>
    </sequence>
   </complexType>
  </element>

Anne

On 4/27/05, Dominik <[EMAIL PROTECTED]> wrote:
> Thanks for article,
> 
> I just create WSDL with java2wsdl  and --style WRAPPED
> 
> my method signature:
> public String[] getArray(C c);
> 
> Here are parts from automatically generated WSDL file
> 
> ...
> 
>    <element name="getArray">
>     <complexType>
>      <sequence>
>       <element name="c" type="tns3:C"/>
>      </sequence>
>     </complexType>
>    </element>
> 
> ...
> 
>    <element name="getArrayResponse">
>     <complexType>
>      <sequence>
>       <element name="getArrayReturn" type="xsd:string"
> maxOccurs="unbounded"/>
>      </sequence>
>     </complexType>
>    </element>
> 
> ...
> 
>    <wsdl:message name="getArrayRequest">
> 
>       <wsdl:part name="parameters" element="impl:getArray"/>
> 
>    </wsdl:message>
> ...
> 
>    <wsdl:message name="getArrayResponse">
> 
>       <wsdl:part name="parameters" element="impl:getArrayResponse"/>
> 
>    </wsdl:message>
> 
> ...
> 
>    <wsdl:operation name="getArray">
>       <wsdl:input name="getArrayRequest" message="impl:getArrayRequest"/>
>       <wsdl:output name="getArrayResponse" message="impl:getArrayResponse"/>
>    </wsdl:operation>
> 
> ...
> 
>       <wsdl:operation name="getArray">
>          <wsdlsoap:operation soapAction=""/>
>          <wsdl:input name="getArrayRequest">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:input>
>          <wsdl:output name="getArrayResponse">
>             <wsdlsoap:body use="literal"/>
>          </wsdl:output>
>       </wsdl:operation>
> ...
> 
> 
> ----- Original Message -----
> From: "Anne Thomas Manes" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Wednesday, April 27, 2005 3:11 PM
> Subject: Re: WRAPPED, arrays and null
> 
> How did you define your array? (please send us your WSDL)
> 
> Please also see the Wiki page on arrays:
> http://wiki.apache.org/ws/DotNetInteropArrays
> 
> Anne
> 
>

Reply via email to