打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
关于webservice框架cxf遇到的一些问题

关于webservice框架cxf遇到的一些问题

警告: Interceptor for {http://impl.service.test.com/}TestService has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: No binding operation info while invoking unknown method with params unknown.

 

解决方式

将访问地址修改为http://localhost:8080/cxf/TestService?wsdl即可加入了?wsdl

 

警告: Interceptor for {http://impl.service.test.com/}TestService has thrown exception, unwinding now
org.apache.cxf.binding.soap.SoapFault: A SOAP 1.2 message is not valid when sent to a SOAP 1.1 only endpoint.

 

原因是soap协议不匹配,要使用soap1.2协议

在接口或实现类上声明,注意要引入geronimo-jaxws_2.2_spec-1.0.jar包

@BindingType(value = "http://www.w3.org/2003/05/soap/bindings/HTTP/") 

@BindingType(value = SOAPBinding.SOAP12HTTP_BINDING)

 

cxf webservice客户端使用soap1.2协议

 

<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" />

 


本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
CXF WebService 开发指南、技术文档
Java开发中经常使用到的几种WebService技术实现方案
与Java Web Service相关的若干概念(JAX-WS,JAX-RS)
WebService
CXF + Spring 开发 Webservices
TCP/IP、HTTP、WEBSERVICE、SOAP、ICE都使用后才有感慨
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服