大家好我首先要求你看看我的wsdl文件它的DHL24 api我想要了解一下这里使用简单的例子就是链接https://dhl24.com.pl/webapi.html
我想使用 getVersion ,因为您可以看到我们不需要提供任何数据,只有在我们有 getVersionResult - STRING
我有这样的流程:
<flow name="getVersion" doc:name="getVersion">
<http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8088" path="getVersion" doc:name="HTTP"/>
<object-to-byte-array-transformer />
<logger doc:name="getVersion" message="Test Before" level="ERROR"/>
<expression-component doc:name="Args2SOAP">
<![CDATA[
payload = { };
]]>
</expression-component>
<cxf:jaxws-client operation="getVersion" clientClass="pl.test.integration.dhl.ws.client.DHL24WebapiService" port="DHL24WebapiPort" enableMuleSoapHeaders="true" doc:name="SOAP">
</cxf:jaxws-client>
<logger doc:name="getVersion" message="Test after" level="ERROR"/>
</flow>
以下是完整记录:
https://dl.dropboxusercontent.com/u/16887656/fulllog.txt
我非常接近,但仍无法找到答案
答案 0 :(得分:0)
流程没有httpoutbound端点将数据发布到它正在使用的外部Web服务。下一步是将 clientClass 更改为 serviceClass
<cxf:jaxws-client operation="getVersion" clientClass="pl.test.integration.dhl.ws.client.DHL24WebapiService" port="DHL24WebapiPort" enableMuleSoapHeaders="true" doc:name="SOAP">
</cxf:jaxws-client>
此处已提及MULE ESB - simple jaxws client don't work ... - Message payload is of type: ContentLengthInputStream