需要在以下格式從第三方發送和接收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