如何从XML文件中提取两个pdf文件?

时间:2015-10-11 10:59:20

标签: xml delphi pdf delphi-2010

为了响应Post中的请求,我得到一个包含两个pdf文件的xml文件(如我附上的示例所示)。 我的问题是我无法提取上面的文件。

--MIMEBoundary_90d05142045ade9e6fce7c43cb81856f3bd2630a9667b995
Content-Type: application/xop+xml; charset=UTF-8; type="text/xml"
Content-Transfer-Encoding: binary
Content-ID: <0.a0d05142045ade9e6fce7c43cb81856f3bd2630a9667b995@apache.org>
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body><a:RispostaCDPDWSBeanProduciRetro xmlns:a="http://virtuale.ws.cdpd.aci.it/data" xmlns="http://ws.cdpd.aci.it/data">
<a:Result
   <esiti>
      <codice>0</codice>
      <descrizione>ESITO OK</descrizione>
   </esiti>
   <tipoEsito>1</tipoEsito>
</a:Result>
<a:FilePdf1>
 <xop:Include xmlns:xop="http://www.w3.org/2004/08/xop/include" href="cid:b0d05142045ade9e6fce7c43cb81856f3bd2630a9667b995@apache.org"/>
</a:FilePdf1>
<a:tipoDocumento>2</a:tipoDocumento>
<a:FilePdf2>
  <xop:Include xmlns:xop="http://www.w3.org/2004/08/xop/include" href="cid:40d05142045ade9e6fce7c43cb81856f3bd2630a9667b995@apache.org"/>
</a:FilePdf2>
</a:RispostaCDPDWSBeanProduciRetro>
</soapenv:Body>
</soapenv:Envelope>
--MIMEBoundary_90d05142045ade9e6fce7c43cb81856f3bd2630a9667b995
Content-Type: application/octet-stream
Content-Transfer-Encoding: binary
Content-ID: <b0d05142045ade9e6fce7c43cb81856f3bd2630a9667b995@apache.org>
   %PDF-1.4........pdf1 body...........%%EOF
--MIMEBoundary_90d05142045ade9e6fce7c43cb81856f3bd2630a9667b995
Content-Type: application/octet-stream
Content-Transfer-Encoding: binary
Content-ID: <40d05142045ade9e6fce7c43cb81856f3bd2630a9667b995@apache.org>
   %PDF-1.4........pdf2 body...........%%EOF
--MIMEBoundary_90d05142045ade9e6fce7c43cb81856f3bd2630a9667b995--

0 个答案:

没有答案