You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Kallen McInerney <ka...@altura.com> on 2003/01/30 19:18:03 UTC

MIME Attachment Examples

Hi all,

We're working with a partner that uses MIME attachments for
posting documents along with their SOAP messages.  I was
wondering if anyone could give me some pointers, information,
discussion, anything on how to send them.  Does Axis even support
them?  Does it support them in the manner I explain below?

For a little background info my messages must containt 2 compartments,
one for the control message and one for the data, separated by a boundary

Content-Type: multipart/related; boundary=--------MIMEBoundary--------;

Each boundary must then set a content type so the body of the request will
look like
so.

POST https://www.xyz.com
Authorization: Basic AbCdEfGhIj
Content-Type: multipart/related; boundary=MIMEBoundary;
Content-Length: 376

--MIMEBoundary
content-type: text/xml; charset="UTF-8"
<Compartment 1: Control - a SOAP message>
--MIMEBoundary
content-type: text/xml; charset="UTF-8"
<Compartment 2: Data - an XML document>
--MIMEBoundary--

Thanks for any help you can provide.

Kallen