Hi,

Try annotate the SEI with
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)

Then the generated elements in the schema will be

<xsd:element name="echo" nillable="true" type="xsd:string"/>
<xsd:element name="echoResponse" nillable="true" type="xsd:string"/>

James

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 ([EMAIL PROTECTED])


Reply via email to