WSO2 ESB-将WSO寻址设置为标头

WSO2 ESB-将WSO寻址设置为标头,wso2,wso2esb,Wso2,Wso2esb,我正在尝试让WSO2与WCF一起工作-WCF希望WSAddressing头被设置并正确。我试图在我的WSDL代理服务中使用标头中介并设置to标头,但它似乎没有任何作用-我总是从WCF收到错误消息:“由于EndpointDispatcher的AddressFilter不匹配,收件人无法处理to“”的消息。请检查发件人和收件人的EndpointAddresses是否一致。” 这是我的代理设置-我需要做什么才能让它工作 <?xml version="1.0" encoding="UTF-8"?&

我正在尝试让WSO2与WCF一起工作-WCF希望WSAddressing头被设置并正确。我试图在我的WSDL代理服务中使用标头中介并设置to标头,但它似乎没有任何作用-我总是从WCF收到错误消息:“由于EndpointDispatcher的AddressFilter不匹配,收件人无法处理to“”的消息。请检查发件人和收件人的EndpointAddresses是否一致。”

这是我的代理设置-我需要做什么才能让它工作

<?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>

我认为您可以为端点启用“WS-Addressing”


请尝试使用适用于您的情况的运输范围

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