cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Egor Samarkhanov <sl...@actimind.com>
Subject Redundand Request/Response types in WSDL
Date Tue, 16 Oct 2007 19:22:35 GMT
Hi !

I've created a simple service with one method

   String echo(String str);

and CXF created request/response types in WSLD:

<xs:element name="echo" type="tns:echo" />
<xs:complexType name="echo">
  <xs:sequence>
    <xs:element minOccurs="0" name="arg0" type="xs:string" />
  </xs:sequence>
</xs:complexType>
<xs:element name="echoResponse" type="tns:echoResponse" />
  <xs:complexType name="echoResponse">
    <xs:sequence>
      <xs:element minOccurs="0" name="return" type="xs:string" />
  </xs:sequence>
</xs:complexType>

...

<wsdl:message name="echo">
  <wsdl:part element="tns:echo" name="parameters" /> 
</wsdl:message>
<wsdl:message name="echoResponse">
  <wsdl:part element="tns:echoResponse" name="result" /> 
</wsdl:message>

...

<wsdl:operation name="echo">
  <wsdl:input message="tns:echo" name="echo" /> 
  <wsdl:output message="tns:echoResponse" name="echoResponse" /> 
</wsdl:operation>

...

<wsdl:operation name="echo">
  <soap:operation soapAction="" style="document" /> 
  <wsdl:input name="echo">
    <soap:body use="literal" />
  </wsdl:input>
  <wsdl:output name="echoResponse">
    <soap:body use="literal" />
  </wsdl:output>
</wsdl:operation>

Is it possible to make CXF work without these additional
echo and echoResponse objects? It would be ideal to work
with just strings for input and output messages.



Thanks,
Egor Samarkhanov (slash@actimind.com)



Mime
View raw message