在 Mulesoft Web 服务消费者中启用 WS-Addressing
Enable WS-Addressing in Mulesoft Web service consumer
如何在 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
中获得类似的东西
注意:- 这是官方回答。它有效。修复 TO、Action 和 messageID 中的虚拟网址。
请在 webservice consumer 之前添加以下内容。你应该准备好了
<set-property propertyName="soap.to" value="<wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://www.asdfadsf.com/esi/common/v1</wsa:To>" doc:name="Soap.To"/>
<set-property propertyName="soap.Action" value="<wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://www.xyzdadadf.com/esi/common/1.0/getAuthenticationExpiryRequest</wsa:Action>" doc:name="soap.action"/>
<set-property propertyName="soap.messageID" value="<wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">urn:entity-name:version:1</wsa:MessageID>" doc:name="soap.messageID"/>
我 post 以这种形式提供更大的社区帮助。
如何在 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
中获得类似的东西注意:- 这是官方回答。它有效。修复 TO、Action 和 messageID 中的虚拟网址。
请在 webservice consumer 之前添加以下内容。你应该准备好了
<set-property propertyName="soap.to" value="<wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://www.asdfadsf.com/esi/common/v1</wsa:To>" doc:name="Soap.To"/>
<set-property propertyName="soap.Action" value="<wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://www.xyzdadadf.com/esi/common/1.0/getAuthenticationExpiryRequest</wsa:Action>" doc:name="soap.action"/>
<set-property propertyName="soap.messageID" value="<wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">urn:entity-name:version:1</wsa:MessageID>" doc:name="soap.messageID"/>
我 post 以这种形式提供更大的社区帮助。