【问题标题】:WSO2 API Manager (WSO2-AM) and Web services addressing (WS-A )WSO2 API 管理器 (WSO2-AM) 和 Web 服务寻址 (WS-A)
【发布时间】:2016-01-29 16:45:01
【问题描述】:

我有一个托管在使用 Web 服务寻址 (WS-A) 的 Weblogic Server 中的 SOAP Web 服务。我正在尝试使用 WSO2 API Manager 发布它。

原始请求有一个完整的 SOAP 标头,包括一个 Action 和 MessageID:

    <soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
     <wsa:Action>urn:es:cetelem:ws:venta:promociones:services:promocionesService:promocionesService_v03:PromocionesServicePortType:obtenerPromocionesOperacionVndRequest</wsa:Action>
   <wsa:MessageID>uuid:969e636c-067f-4bed-a38a-65f0f81c295d</wsa:MessageID>
</soapenv:Header>

但是 wso2-am 在发送到 Werblogic 服务器中的最终端点之前会从 SOAP 标头中删除字段 Action 和 MessageID。这是 wso2-am 发送的错误侦听器的示例 &lt;soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing"/&gt;

如何配置 wso2-am 以保留客户端发送的 SOAP Header。

【问题讨论】:

    标签: wso2 wso2-am ws-addressing


    【解决方案1】:

    我找到了解决方案。我在[CARBON-HOME]/repository/deployment/server/synapse-configs/default/sequences 中添加了一个新的序列中介扩展来保留原始的WS-A 标头。新的扩展设置为真 PRESERVE_WS_ADDRESSING 属性。

    访问https://docs.wso2.com/display/ESB460/Generic+Properties .
    新中介的代码是:

    <sequence xmlns="http://ws.apache.org/ns/synapse" name="WSO2AM--Ext--In">
        <property name="PRESERVE_WS_ADDRESSING" value="true" scope="default" type="STRING"/>
    </sequence> 
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-07-25
      相关资源
      最近更新 更多