【问题标题】:WSO2 ESB requirement to pass xml as a Soap AttachmentWSO2 ESB 要求将 xml 作为 Soap 附件传递
【发布时间】:2016-05-04 21:13:47
【问题描述】:

我们需要在soap 请求中将xml 作为Soap 附件传递。目前我们正在一个自定义类中介器中处理这个需求;我们正在尝试通过 WSO2 ESB 内置调解器来实现此要求,而无需在自定义类调解器中编码功能。我们正在 WSO2 ESB 4.9.0 和 4.8.0 上探索这个选项 请提出您宝贵的建议。

带有附件的肥皂请求如下所示。附加的 XML 文件在自定义类中介中传递。

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:swa="http://aasws.com/swa">
   <soapenv:Header>
      <swa:OurHeader>
         <swa:Credential>
            <swa:Username>XXXX</swa:Username>
            <swa:Password>XXXX</swa:Password>
            <swa:Dbtitle>XXXX</swa:Dbtitle>
            <!--Optional:-->
            <swa:Domain/>
            <!--Optional:-->
            <swa:Accessuser/>
         </swa:Credential>
      </swa:OurHeader>
   </soapenv:Header>
   <soapenv:Body>
      <swa:getServiceInfo>
         <swa:attachmentID>XXXX.xml</swa:attachmentID>
      </swa:getServiceInfo>
   </soapenv:Body>
</soapenv:Envelope>

【问题讨论】:

  • 请看下面的问题

标签: wso2 wso2esb wso2carbon


【解决方案1】:

您可以通过 MTOM 在 WSO2 ESB 中发送 SOAP 附件。请找到以下链接,详细说明如何完成此任务。

[1]http://hi-my-world.blogspot.com/2015/01/sending-attachements-with-with-esb-via.html

[2]https://docs.wso2.com/pages/viewpage.action?pageId=33136025

[3]http://wso2.com/library/1148/

干杯, 普布都。

【讨论】:

    猜你喜欢
    • 2012-08-31
    • 1970-01-01
    • 1970-01-01
    • 2016-08-01
    • 2020-05-15
    • 2017-12-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多