【发布时间】:2016-07-16 23:19:36
【问题描述】:
我正在使用 MTOM 将附件从客户端流式传输到服务器。
应用 MTOM,文件以二进制形式流式传输。但根 Content-Type 始终是 "text/xml",应该是 "application/xml+xop"。
问题仅出现在 websphere 中。内容类型在 websphere 中设置为 "text/xml"。
在websphere liberity profile中,内容类型设置为"application/xml+xop"
------=_Part_7283_-2062365125.1458743649653
Content-Type: text/xml; charset=UTF-8
Content-Transfer-Encoding: binary
Content-Id: <511212039242.1458743649653.IBM.WEBSERVICES@lsrv4665.linux.rabobank.nl>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
</soapenv:Header>
<soapenv:Body>
<Content><xop:Include xmlns:xop="http://www.w3.org/2004/08/xop/include" href="cid:58cf03d2-322f-4819-80fb-3b001f497d12%40www.test.com"/>
</Content>
</soapenv:Body>
</soapenv:Envelope>
Content-Type: application/pdf; name=attachment.pdf
Content-Transfer-Encoding: binary
【问题讨论】:
标签: java soap websphere websphere-liberty mtom