【发布时间】: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