SOAP 1.1使用名称空间http://schemas.xmlsoap.org/wsdl/soap/
SOAP 1.2使用名称空间http://schemas.xmlsoap.org/wsdl/soap12/
wsdl能够在同一个wsdl中同时定义soap 1.1和soap 1.2下的操作。如果你需要发展你的wsdl以支持需要soap 1.2的新功能(例如MTOM),那么这非常有用,在这种情况下,你不需要创建新服务,只需要改进原来的服务即可。
<binding name="EmployeeServiceImplPortBinding" type="tns:EmployeeServiceImpl">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/>
<operation name="findEmployeeById">
<soap:operation soapAction=""/>
<input><soap:body use="literal" namespace="http://jaxb.ws.jax.samples.chathurangaonline.com/"/></input>
<output><soap:body use="literal" namespace="http://jaxb.ws.jax.samples.chathurangaonline.com/"/></output>
</operation><operation name="create">
<soap:operation soapAction=""/>
<input><soap:body use="literal" namespace="http://jaxb.ws.jax.samples.chathurangaonline.com/"/></input>
<output><soap:body use="literal" namespace="http://jaxb.ws.jax.samples.chathurangaonline.com/"/></output>
</operation>
</binding>
SOAP 1.1:Context-Type的用户文本/ xml
POST /MyService HTTP/1.1
Content-Type: text/xml; charset=“utf-8”
Content-Length: xxx
SOAPAction: “urn:uuid:myaction”
SOAP 1.2:用于上下文类型的用户应用程序/ soap + xml
POST /MyService HTTP/1.1
Content-Type: application/soap+xml; charset=“utf-8”
Content-Length: xxx
SOAPAction: “urn:uuid:myaction”
https://cloud.tencent.com/developer/ask/123615