Apache CXF WSDL Generateion Options to SOAP1.2 JAX-WS RI WSDL Generateion Options to SOAP1.2
Below is my interface and the generated wsdl file. The wsdl file shows warning: WS-I:(AP2901) A description uses neither the WSDL MIME Binding as described in WSDL 1.1 Section 5 nor WSDL SOAP binding as described in WSDL 1.1 section 3 on each of the wsdl:input or wsdl:output elements of a wsdl:binding If I generate code based on this wsdl file, it won't work. How should I modify this wsdl file? @WebService(name="HelloWorld", targetNamespace="http://spring.demo/") public interface HelloWorld { @WebMethod(operationName="sayHi", exclude=false) @ResponseWrapper(className="demo.spring.SayHiResponse", localName="sayHiResponse", targetNamespace="http://spring.demo/") @RequestWrapper(className="demo.spring.SayHi", localName="sayHi", targetNamespace="http://spring.demo/") public java.lang.String sayHi( java.lang.String text ); } <?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions name="HelloWorldService" targetNamespace="http://spring.demo/" xmlns:tns="http://spring.demo/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> <wsdl:types> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://spring.demo/" attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://spring.demo/"> <xsd:element name="sayHi" type="tns:sayHi"/> <xsd:complexType name="sayHi"> <xsd:sequence> <xsd:element minOccurs="0" name="arg0" type="xsd:string"/> </xsd:sequence> </xsd:complexType> <xsd:element name="sayHiResponse" type="tns:sayHiResponse"/> <xsd:complexType name="sayHiResponse"> <xsd:sequence> <xsd:element minOccurs="0" name="return" type="xsd:string"/> </xsd:sequence> </xsd:complexType> </xsd:schema> </wsdl:types> <wsdl:message name="sayHiResponse"> <wsdl:part name="parameters" element="tns:sayHiResponse"> </wsdl:part> </wsdl:message> <wsdl:message name="sayHi"> <wsdl:part name="parameters" element="tns:sayHi"> </wsdl:part> </wsdl:message> <wsdl:portType name="HelloWorld"> <wsdl:operation name="sayHi"> <wsdl:input name="sayHi" message="tns:sayHi"> </wsdl:input> <wsdl:output name="sayHiResponse" message="tns:sayHiResponse"> </wsdl:output> </wsdl:operation> </wsdl:portType> <wsdl:binding name="HelloWorldServiceSoapBinding" type="tns:HelloWorld"> <soap12:binding style="document" transport="http://www.w3.org/2003/05/soap/bindings/HTTP/"/> <wsdl:operation name="sayHi"> <soap12:operation soapAction="" style="document"/> <wsdl:input name="sayHi"> <soap12:body use="literal"/> </wsdl:input> <wsdl:output name="sayHiResponse"> <soap12:body use="literal"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="HelloWorldService"> <wsdl:port name="HelloWorldPort" binding="tns:HelloWorldServiceSoapBinding"> <soap12:address location="http://localhost:9090/hello"/> </wsdl:port> </wsdl:service> </wsdl:definitions> -- View this message in context: http://www.nabble.com/Eclipse-STP-plugin-generate-not-correct-wsdl-file-for-version-SOAP1.2-tp14694230p14694230.html Sent from the cxf-user mailing list archive at Nabble.com.
