2014-01-23 35 views
0

我想讓WSO2與WCF一起工作 - WCF期望WSAddressing標頭設置正確。我試圖在我的WSDL代理服務中使用Header Mediator並設置To Header,但它似乎永遠不會做任何事情 - 我總是從WCF獲取錯誤消息:「To的消息」無法在接收方處理,由於EndpointDispatcher中的AddressFilter不匹配,請檢查發送者和接收者的EndpointAddresses是否同意。「WSO2 ESB - WSAddressing設置爲頁眉

這是我的代理設置 - 我需要做些什麼才能使它工作?

<?xml version="1.0" encoding="UTF-8"?> 
<proxy xmlns="http://ws.apache.org/ns/synapse" 
     name="PingService" 
     transports="http" 
     statistics="disable" 
     trace="disable" 
     startOnLoad="true"> 
    <target> 
     <inSequence> 
     <header xmlns:a="http://www.w3.org/2005/08/addressing" 
       name="a:To" 
       scope="default" 
       value="http://localhost/PingService/PingService.svc"/> 
     </inSequence> 
     <outSequence> 
     <send/> 
     </outSequence> 
     <endpoint> 
     <wsdl service="PingService" 
       port="AccountService_WsHttp" 
       uri="http://uk-dev-10706.wintech.local/PingService/PingService.svc?singleWsdl"/> 
     </endpoint> 
    </target> 
    <description/> 
</proxy> 

回答

0

請傳輸範圍嘗試可能是將工作你的情況。

<header xmlns:a="http://www.w3.org/2005/08/addressing" 
       name="a:To" 
       scope="transport" 
       value="http://localhost/PingService/PingService.svc"/>