我的webservice的消费者,通过ping端点来验证其证书:
https://my.webservice.com/services/myService
但他们无法这样做,因为他们获得了服务器的CXF组件生成的500 http错误代码:
WARNING: Interceptor for {http://my.webservice.com/}MyWebService has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: No binding operation info while invoking unknown method with params unknown.
org.apache.cxf.binding.soap.interceptor.Soap12FaultOutInterceptor$Soap12FaultOutInterceptorInternal handleMessage
...
INFO: class org.apache.cxf.binding.soap.interceptor.Soap12FaultOutInterceptor$Soap12FaultOutInterceptorInternalapplication/soap+xml
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1686)
现在,当Web服务由https://my.webservice.com/services/myService
处的SOAP客户端调用时,它本身工作正常......只是一个简单的GET操作试图找出证书情况,搞砸了。
有没有办法配置这个端点,只需发送回200 OK或WSDL文件,当它用简单的GET命中时?我现在正在使用CXF 2.7.7版。