Hello !

Thanks, James, this annotation made CXF generate
correct WSDL, but now integer values are returned
incorrectly from my service. In my .NET client
I get nulls instead of integers.

Wednesday, October 17, 2007, 7:01:08 AM, you wrote:

JM> Hi,

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

JM> Then the generated elements in the schema will be

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

JM> 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])
>>
>>
>>   




------------------------------------
Best regards,
Egor Samarkhanov ([EMAIL PROTECTED])
Actimind, Inc.


Reply via email to