问题是这样的:我们系统使用cxf做webservice服务端,供其他平台调用。我们发布出去的地址是:
1 http://服务器IP/UA/TrustAuth?wsdl
这个地址我们自己测试的时候是正常的,但是对方系统调用时不通。。。。(可以保证双方网络是通的,ping/telnet/traceroute都能证明网络是联通的),异常堆栈是(这个是对方系统上面抓下来的调用日志):
01 PhaseIntercep I org.apache.cxf.phase.PhaseInterceptorChain doIntercept Interceptor has thrown exception, unwinding now
02 org.apache.cxf.binding.soap.SoapFault: "http://schemas.xmlsoap.org/wsdl/", the namespace on the "definitions" element, is not a valid SOAP version.
03 at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:95)
04 at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:57)
05 at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
06 at org.apache.cxf.endpoint.ClientImpl.onMessage(Client
1 http://服务器IP/UA/TrustAuth?wsdl
这个地址我们自己测试的时候是正常的,但是对方系统调用时不通。。。。(可以保证双方网络是通的,ping/telnet/traceroute都能证明网络是联通的),异常堆栈是(这个是对方系统上面抓下来的调用日志):
01 PhaseIntercep I org.apache.cxf.phase.PhaseInterceptorChain doIntercept Interceptor has thrown exception, unwinding now
02 org.apache.cxf.binding.soap.SoapFault: "http://schemas.xmlsoap.org/wsdl/", the namespace on the "definitions" element, is not a valid SOAP version.
03 at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:95)
04 at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:57)
05 at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
06 at org.apache.cxf.endpoint.ClientImpl.onMessage(Client