You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by Gus Delgado <gu...@netquotient.com> on 2001/04/30 16:28:16 UTC

PDF

Forgive for the stupid question,
can you send PDF files through a SOAP envelope? Furthermore, Can you send
xml tags in addition to a PDF file? kind of like this, ( I know it wouldn't
be as easy as this, but is it possible to send both?)

<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<ns1:methodName
SOAP-ENV:encodingStyle="http://xml.apache.org/xml-soap/literalxml"
xmlns:ns1="urn:ServiceName">
<newRequest>
<RequestDateTime>02/19/01</RequestDateTime>
<Requestor>Smith</Requestor>
 <PDFFile>MYPDF.pdf<PDFFile>
</newRequest>
</ns1:methodName>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

RE: PDF

Posted by Anne Thomas Manes <at...@sun.com>.
Gus,

You have two options:
- you can embed the .pdf file in CDDATA
- you can send the .pdf file as an attachment using SOAP Messages with
Attachments (SwA).
(see http://www.w3.org/TR/2000/NOTE-SOAP-attachments-20001211)

SwA packages a SOAP message in a Multipart/MIME envelope. The first part is
the SOAP
message. Attachments go in subsequent message parts.

Regards,
Anne Thomas Manes
Sun Microsystems
  -----Original Message-----
  From: Gus Delgado [mailto:gus.delgado@netquotient.com]
  Sent: Monday, April 30, 2001 7:28 AM
  To: soap-user@xml.apache.org
  Subject: PDF


  Forgive for the stupid question,
  can you send PDF files through a SOAP envelope? Furthermore, Can you send
xml tags in addition to a PDF file? kind of like this, ( I know it wouldn't
be as easy as this, but is it possible to send both?)

  <SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
  <SOAP-ENV:Body>
  <ns1:methodName
SOAP-ENV:encodingStyle="http://xml.apache.org/xml-soap/literalxml"
xmlns:ns1="urn:ServiceName">
  <newRequest>
  <RequestDateTime>02/19/01</RequestDateTime>
  <Requestor>Smith</Requestor>
   <PDFFile>MYPDF.pdf<PDFFile>
  </newRequest>
  </ns1:methodName>
  </SOAP-ENV:Body>
  </SOAP-ENV:Envelope>

RE: PDF

Posted by Anne Thomas Manes <at...@sun.com>.
Gus,

You have two options:
- you can embed the .pdf file in CDDATA
- you can send the .pdf file as an attachment using SOAP Messages with
Attachments (SwA).
(see http://www.w3.org/TR/2000/NOTE-SOAP-attachments-20001211)

SwA packages a SOAP message in a Multipart/MIME envelope. The first part is
the SOAP
message. Attachments go in subsequent message parts.

Regards,
Anne Thomas Manes
Sun Microsystems
  -----Original Message-----
  From: Gus Delgado [mailto:gus.delgado@netquotient.com]
  Sent: Monday, April 30, 2001 7:28 AM
  To: soap-user@xml.apache.org
  Subject: PDF


  Forgive for the stupid question,
  can you send PDF files through a SOAP envelope? Furthermore, Can you send
xml tags in addition to a PDF file? kind of like this, ( I know it wouldn't
be as easy as this, but is it possible to send both?)

  <SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
  <SOAP-ENV:Body>
  <ns1:methodName
SOAP-ENV:encodingStyle="http://xml.apache.org/xml-soap/literalxml"
xmlns:ns1="urn:ServiceName">
  <newRequest>
  <RequestDateTime>02/19/01</RequestDateTime>
  <Requestor>Smith</Requestor>
   <PDFFile>MYPDF.pdf<PDFFile>
  </newRequest>
  </ns1:methodName>
  </SOAP-ENV:Body>
  </SOAP-ENV:Envelope>