You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by "Silberman, Nathan" <NS...@doubleclick.com> on 2007/11/29 20:54:05 UTC

Returning arrays with document/literal

Has anybody had any problem returning arrays with document/literal
wrapped? 

I have the following wsdl that consistenly returns an empty response
even though I can see the server side has data to return as elements in
the array

	...

      <element name="getAllUsersResponse">
        <complexType>
          <sequence>
            <element name="getAllUsersReturn" maxOccurs="unbounded"
type="impl:User"/>
          </sequence>
        </complexType>
      </element>

	... 

  <wsdl:message name="getAllUsersResponse">
    <wsdl:part element="impl:getAllUsersResponse" name="parameters"/>
  </wsdl:message>

	...

    <wsdl:operation name="getAllUsers">
      <wsdl:input message="impl:getAllUsersRequest"
name="getAllUsersRequest"/>
      <wsdl:output message="impl:getAllUsersResponse"
name="getAllUsersResponse"/>
      <wsdl:fault message="impl:ApiException" name="ApiException"/>
    </wsdl:operation>

	...

  <wsdl:binding name="UserServiceSoapBinding" type="impl:UserInterface">
    <wsdlsoap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>

    <wsdl:operation name="getAllUsers">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input name="getAllUsersRequest">
        <wsdlsoap:body use="literal"/>
      </wsdl:input>
      <wsdl:output name="getAllUsersResponse">
        <wsdlsoap:body use="literal"/>
      </wsdl:output>
      <wsdl:fault name="ApiException">
        <wsdlsoap:fault name="ApiException" use="literal"/>
      </wsdl:fault>
    </wsdl:operation>

	...