IBM Integration Bus Web 服务客户端请求
IBM Integration Bus web service client request
我必须向 SOAP Web 服务发送预定请求,请求中包含附件(zip)和元数据。数据和文件在 .NET 计算节点中准备,SOAP 请求节点由 WSDL 文件创建。不幸的是,我不知道如何将元数据和文件从 .NET 计算节点传递到 SOAP 请求节点。元数据在信封的标签中,附件的uuid在正文的标签中。文件进入附件部分。
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:tag="http://....">
<soap:Header>
<tag:metadata>
<tag:filename>filename</tag:filename>
<tag:date>2018-06-01</tag:date>
</tag:metadata>
</soap:Header>
<soap:Body>
<tag:file>
<tag:content>cid:4444444</tag:content>
</tag:file>
</soap:Body>
</soap:Envelope>
有人可以帮我吗?
SOAP 节点支持 MTOM 附件处理,因此 IIB 会自动处理。 IIB 知识中心概述了这些要求:
An MTOM output message is written if all of the following criteria are met:
The Allow MTOM property is selected on the WS Extensions tab.
Validation is enabled. The Validate property on the SOAPRequest and SOAPAsyncRequest nodes controls validation of the anticipated response message and not validation of the outgoing request. MTOM output is therefore suppressed unless you set Validate to Content and value on a preceding input node or transformation node.
No child elements exist below SOAP.Attachment in the logical tree. If child elements are present, SOAP with Attachments (SwA) is used.
Elements exist in the output message that are identified as base64Binary in the associated XML Schema and whose length does not fall below a default threshold size of 1000 bytes.
https://www.ibm.com/support/knowledgecenter/SSMKHH_10.0.0/com.ibm.etools.mft.doc/ac56630_.htm
所以您只需将二进制数据作为 BLOB 放入您的内容元素中(前提是它在架构中具有正确的类型)并按上述方式配置流程。
我必须向 SOAP Web 服务发送预定请求,请求中包含附件(zip)和元数据。数据和文件在 .NET 计算节点中准备,SOAP 请求节点由 WSDL 文件创建。不幸的是,我不知道如何将元数据和文件从 .NET 计算节点传递到 SOAP 请求节点。元数据在信封的标签中,附件的uuid在正文的标签中。文件进入附件部分。
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:tag="http://...."> <soap:Header> <tag:metadata> <tag:filename>filename</tag:filename> <tag:date>2018-06-01</tag:date> </tag:metadata> </soap:Header> <soap:Body> <tag:file> <tag:content>cid:4444444</tag:content> </tag:file> </soap:Body> </soap:Envelope>
有人可以帮我吗?
SOAP 节点支持 MTOM 附件处理,因此 IIB 会自动处理。 IIB 知识中心概述了这些要求:
An MTOM output message is written if all of the following criteria are met:
The Allow MTOM property is selected on the WS Extensions tab.
Validation is enabled. The Validate property on the SOAPRequest and SOAPAsyncRequest nodes controls validation of the anticipated response message and not validation of the outgoing request. MTOM output is therefore suppressed unless you set Validate to Content and value on a preceding input node or transformation node.
No child elements exist below SOAP.Attachment in the logical tree. If child elements are present, SOAP with Attachments (SwA) is used.
Elements exist in the output message that are identified as base64Binary in the associated XML Schema and whose length does not fall below a default threshold size of 1000 bytes.
https://www.ibm.com/support/knowledgecenter/SSMKHH_10.0.0/com.ibm.etools.mft.doc/ac56630_.htm
所以您只需将二进制数据作为 BLOB 放入您的内容元素中(前提是它在架构中具有正确的类型)并按上述方式配置流程。