2012-10-12 60 views
0

我已經在mule中設置了一些代理服務,但仍在學習。出於某種原因,當命名空間和服務名稱應該正確時,此流程無效。有人看到我的錯誤?Mule Proxy Service在命名空間中找不到定義

感謝您的時間

<flow name="UPCFlow1" doc:name="UPCFlow1"> 
    <http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="4040" path="upc" doc:name="HTTP"/> 
    <cxf:proxy-service namespace="http://searchupc.com/" service="GetProduct" payload="envelope" wsdlLocation="http://www.searchupc.com/service/UPCSearch.asmx?WSDL" doc:name="SOAP" port="UPCSearchSoap"/> 
<http:outbound-endpoint address="http://www.searchupc.com/supc/service/UPCSearch.asmx" 
    exchange-pattern="request-response" doc:name="HTTP"/> 
</flow> 

這是從堆棧跟蹤

INFO 2012-10-12 11:06:44,739 [main] org.mule.module.launcher.application.DefaultMuleApplication: App 'upc' never started, nothing to dispose of 
Exception in thread "main" org.mule.module.launcher.DeploymentInitException: ServiceConstructionException: Could not find definition for service {http://searchupc.com/}GetProduct. 

回答

0

。在你配置的問題:服務名稱爲「UPCSearch」而不是「GetProduct」。

這工作:

<flow name="UPCFlow1" doc:name="UPCFlow1"> 
    <http:inbound-endpoint exchange-pattern="request-response" 
     host="localhost" port="4040" path="upc" doc:name="HTTP" /> 
    <cxf:proxy-service namespace="http://searchupc.com/" 
     service="UPCSearch" payload="envelope" 
     wsdlLocation="http://www.searchupc.com/service/UPCSearch.asmx?WSDL" 
     doc:name="SOAP" port="UPCSearchSoap" /> 
    <http:outbound-endpoint 
     address="http://www.searchupc.com/supc/service/UPCSearch.asmx" 
     exchange-pattern="request-response" doc:name="HTTP" /> 
</flow> 
+0

感謝大衛,你似乎與這些騾子答案是無處不在。 我現在正在收到COULD_NOT_READ_XML_STREAM錯誤,但原始問題已解決 – bbotz

+0

大聲笑,我到處都是靠近Mule http://manning.com/dossot2/ :)請用這個新問題打開一個新問題。 –

+0

是的,要自己嘗試並麻煩拍攝它,如果需要,將會打開新帖子。 – bbotz