【问题标题】:Enable WS-Addressing in Mulesoft Web service consumer在 Mulesoft Web 服务使用者中启用 WS-Addressing
【发布时间】:2018-07-20 06:25:37
【问题描述】:

如何在 Mulesoft 的 Web 服务 Consumer 中启用 WS-Addressing。

当我在 mulesoft 中搜索 WS-Addressing 时。它指向 CXF。但是文档指出建议使用 Web 服务使用者而不是 CXF。

那么有什么方法可以启用 WS-Addressing。 SoapAction 被添加到 WSDL 中

POST /esi2/esi-gateway/v2/common/v1 HTTP/1.1
SOAPAction: "http://www.macquarie.com/...."
Host: www.macquarie.com
User-Agent: AHC/1.0
Connection: keep-alive
Accept: */*
Content-Type: text/xml; charset=UTF-8
Content-Length: 1453

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-2004

.......

在 SOAP UI 中进行测试时,我可以找到 WS-A 并填写了所有详细信息。我怎样才能在 Mulesoft 中获得类似的东西

【问题讨论】:

    标签: mule mule-component anypoint-studio mule-esb


    【解决方案1】:

    注意:- 这是官方答案。它有效。修复 TO、Action 和 messageID 中的虚拟网址。

    请在 webservice consumer 之前添加以下内容。你应该准备好了

    <set-property propertyName="soap.to" value="&lt;wsa:To xmlns:wsa=&quot;http://www.w3.org/2005/08/addressing&quot;&gt;http://www.asdfadsf.com/esi/common/v1&lt;/wsa:To&gt;" doc:name="Soap.To"/>
    
    <set-property propertyName="soap.Action" value="&lt;wsa:Action xmlns:wsa=&quot;http://www.w3.org/2005/08/addressing&quot;&gt;http://www.xyzdadadf.com/esi/common/1.0/getAuthenticationExpiryRequest&lt;/wsa:Action&gt;" doc:name="soap.action"/>
    
    <set-property propertyName="soap.messageID" value="&lt;wsa:MessageID xmlns:wsa=&quot;http://www.w3.org/2005/08/addressing&quot;&gt;urn:entity-name:version:1&lt;/wsa:MessageID&gt;" doc:name="soap.messageID"/>
    

    我在表单中发布此内容以获得更大的社区帮助。

    【讨论】:

      猜你喜欢
      • 2010-10-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-04-05
      • 2011-07-26
      相关资源
      最近更新 更多