Mule CXF消费webservice

问题描述:

我使用cxf:jaxws-service在mule中创建一个webservice。这是网址:http:// localhost:65042/InsertDocService/InsertDoc,我可以生成WSDL文件,但我想要使用cxf:jaxws-client在mule中使用此服务。Mule CXF消费webservice

<flow name="documentumclientflowFlow1" doc:name="documentumclientflowFlow1"> 
    <inbound-endpoint address="http://localhost:65042/InsertDocumentumService/InsertDocumentum" doc:name="Generic"/> 
    <cxf:jaxws-client operation="insertDocumentum" serviceClass="com.integration.IDocumentumInsert" port="80" mtomEnabled="true" enableMuleSoapHeaders="true" doc:name="SOAP"/> 
    <outbound-endpoint address="http://locahhost:65042/InsertDocumentumService/InsertDocumentum" doc:name="Generic"/> 
</flow> 

如果我调用这个,它要服务项目,并获得erorr像 “org.apache.cxf.interceptor.Fault:没有这样的操作:(HTTP GET PATH_INFO:/ InsertDocumentumService/InsertDocumentum)”。请任何人建议我如何解决这个问题,我怎样才能使用这项服务。

除了类型(locahhost而不是localhost),它看起来像你试图在出站端点使用相同的地址比在入站端点。我不认为这是你想要做的,因为它会导致一个循环重入调用,最终会耗尽游戏线程,阻塞,超时并在火中死亡。

那么你想用“documentumclientflowFlow1”做什么?你的问题还不清楚。

+0

david你能告诉我什么是出站地址吗? –

+0

plz建议我如何使用mule作为客户端的其他Web服务...... –

+0

您是否按照本教程? http://www.mulesoft.org/documentation/display/MULE3USER/Consuming+Web+Services+with+CXF –