心心失意 发表于 2017-1-13 10:34:49

org.apache.cxf.common.i18n.UncheckedException: No operation was found with

调用CXF编写的webservice时出现异常:

org.apache.cxf.common.i18n.UncheckedException: No operation was found with the name { }

经过google,发现是@webservice的注解中未添加targetNamespace属性造成的。

修改方法就是增加该属性,至于值为多少,可以查询该webservice的wsdl。

下文中的targetNamespace即为该属性


<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://webservice.data.your.website.com/" elementFormDefault="unqualified" targetNamespace="http://webservice.data.your.website.com/" version="1.0">
 
页: [1]
查看完整版本: org.apache.cxf.common.i18n.UncheckedException: No operation was found with