如何从内容类型为application / xop + xml的soap响应中获取附件文件

时间:2019-07-01 08:47:15

标签: c# soap .net-core multipart mtom

我想保存一个附件文件,该附件使用肥皂响应分多部分发送

Content-Type: application/xop+xml; charset=utf-8; type="text/xml"
Content-Transfer-Encoding: binary
Content-ID: <0.82ec94b3085b6df44d76195cb56f29f0dfd12706fde4a48f@apache.org>

<?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><getResponse xmlns:a="http://www.w3.org/2005/05/xmlmime" xmlns="http://org/emedny/fts/"><output><fileData><xop:Include xmlns:xop="http://www.w3.org/2004/08/xop/include" href="cid:92ec94b3085b6df44d76195cb56f29f0dfd12706fde4a48f@apache.org"/></fileData></output></getResponse></soapenv:Body></soapenv:Envelope>
--MIMEBoundary_f2ec94b3085b6df44d76195cb56f29f0dfd12706fde4a48f
Content-Type: application/octet-stream
Content-Transfer-Encoding: binary
Content-ID: <92ec94b3085b6df44d76195cb56f29f0dfd12706fde4a48f@apache.org>


//x12 file content here//

--MIMEBoundary_f2ec94b3085b6df44d76195cb56f29f0dfd12706fde4a48f--  ```

i want to extract the file content

0 个答案:

没有答案