CXF SOAP 1.2 SOAP 1.1 问题

在用cxf 做webservice客户端的时候碰到的:

 

javax.xml.ws.soap.SOAPFaultException: A SOAP 1.2 message is not valid when sent to a SOAP 1.1 only endpoint.

最简单的解决方案 :加上bindingId="http://www.w3.org/2003/05/soap/bindings/HTTP/"

<jaxws:client id="cdsPatientServices" address="http://localhost:8181/cxf/v1/soap/patient"  
        bindingId="http://www.w3.org/2003/05/soap/bindings/HTTP/"
		serviceClass="net.carefx.cds.v1.service.patientservices.CdsPatientServices" />
 

 

 

 

 

猜你喜欢

转载自sanfeng-chow.iteye.com/blog/1597446