需要在以下格式从第三方发送和接收SOAP消息:SOAP带附件/ MIME内容
POST /api HTTP/1.1
Host: mytesthost.com
Content-Type: multipart/related;
boundary="aMIMEBoundary";
type="text/xml";
start="<soap-start>"
Content-Length: 2014
SOAPAction: ""
--aMIMEBoundary
Content-Type: text/xml; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-ID: <soap-start>
<?xml version="1.0" encoding="UTF-8"?>
<soap-env:Envelope xmlns:soap-
env="http://schemas.xmlsoap.org/soap/envelope/">
<soap-env:Header>
...
</soap-env:Header>
<soap-env:Body>
...
</soap-env:Body>
</soap-env:Envelope>
--aMIMEBoundary
Content-Type: image/gif
Content-ID: dancingbaby.gif
Content-Transfer-Encoding: base64
Content-Disposition: attachment
<Binary Data Here>
--aMIMEBoundary--
这被认为是“带附件的SOAP消息”?我们刚开始研究这个,并发现使用.NET技术发送这种类型的消息的非常薄的支持。
请让我知道你是否有这种类型的操作的起点。我们已经看过ServiceStack和PocketSOAP(SOAP Frameworks for .NET)。
我们也看到了DIME和MTOM的提及。这可以代替SWA(带附件的SOAP)消息吗?
如果您需要更多信息,请让我知道。我们主要致力于发送二进制数据作为SOAP消息的一部分,这是我们第一次接触到它。谢谢!
您的第三方是时代背后的路。 swa和DIME都不是有效的标准。他们几乎死了。 – 2011-03-18 01:32:58