在Mulesoft Web服务使用者中启用WS-Addressing

时间:2018-07-20 06:25:38

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

如何在Mulesoft的Web服务使用者中启用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中获得类似的东西

1 个答案:

答案 0 :(得分:1)

注意:-这是官方答案。而且有效。在TO,Action和messageID中修复虚拟网址。

请在webservice使用者之前添加以下内容。您应该设置为走

<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"/>

我将其发布在表单中,以寻求更大的社区帮助。

相关问题