【发布时间】:2016-04-01 12:16:24
【问题描述】:
我正在尝试使用 mule(Anypoint Studio) 中的 CXF 组件使用 Web 服务。
所以我尝试从 URL 生成 WSDL 文件,但我得到了这个错误:Rpc/encoded wsdls are not supported in CXF 所以我关注了this answer.
它工作并生成了客户端存根,然后将文件复制到我的 mule 项目中。
但我收到此错误:
Service.SomeService.<init>(java.net.URL, javax.xml.namespace.QName) (java.lang.NoSuchMethodException)
这是我的流程:
<flow name="WebServiceTest">
<cxf:jaxws-client
clientClass="service.SomeService"
wsdlLocation="http://127.0.0.1:8000/api/v2_soap/?wsdl"
operation="test"/>
<outbound-endpoint address="http://127.0.0.1:8000/api.php/?type=v2_soap"/>
</flow>
有什么想法吗?
【问题讨论】:
标签: java web-services mule cxf anypoint-studio