cancel
Showing results for 
Search instead for 
Did you mean: 

Word(MIME) Attachment with SOAP Receiver Adapter

Former Member
0 Kudos

Hi Folks,

    I need to send a Work attachment to a webservice, How can I achieve the same ?

Proxy to SOAP scenario

Regards,

   Santosh

Accepted Solutions (0)

Answers (1)

Answers (1)

markangelo_dihiansan
Active Contributor
0 Kudos

Hi Santosh,

Use ABAP Proxies with attachments

And in your operation mapping, if you need to manipulate the attachment, check the Read Attachments option (PI 7.1 and above only)

And in your SOAP Receiver CC check the Keep Attachments option.

Regards,

Mark

Former Member
0 Kudos

Hi Mark,

    Thanks for the reply, I have already followed the "Creation of attachment with the ABAP Proxy" and the attachment is flowing to the webservice fine, not in the mime format. it's just going as a separate doc.I need to send the data in the below format

Content-Type: Multipart/Related; boundary=MIME_boundary; type=text/xml;

  start="<claim061400a.xml@claiming-it.com>"

Content-Length: XXXX

SOAPAction: http://schemas.risky-stuff.com/Auto-Claim

Content-Description: This is the optional message description.

--MIME_boundary

Content-Type: text/xml; charset=UTF-8

Content-Transfer-Encoding: 8bit

Content-ID: <claim061400a.xml@claiming-it.com>

<?xml version='1.0' ?>

<SOAP-ENV:Envelope

xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">

<SOAP-ENV:Body>

<claim:insurance_claim_auto id="insurance_claim_document_id"

xmlns:claim="http://schemas.risky-stuff.com/Auto-Claim">

<theSignedForm href="cid:claim061400a.tiff@claiming-it.com"/>

<theCrashPhoto href="cid:claim061400a.jpeg@claiming-it.com"/>

<!-- ... more claim details go here... -->

</claim:insurance_claim_auto>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>

--MIME_boundary

Content-Type: image/tiff

Content-Transfer-Encoding: base64

Content-ID: <claim061400a.tiff@claiming-it.com>

...Base64 encoded TIFF image...

--MIME_boundary

Content-Type: image/jpeg

Content-Transfer-Encoding: binary

Content-ID: <claim061400a.jpeg@claiming-it.com>

...Raw JPEG image..

--MIME_boundary--

Former Member
0 Kudos

Hi Santosh

Write a java mapping to populate the MIME structure in PI and in SOAP receiver adapter check the option 'Do not use SOAP envelope'.

markangelo_dihiansan
Active Contributor
0 Kudos

Hi Santosh,

Indrajit is correct. This has to be done via java mapping. SOAP Axis also supports multi-part but I have never tried it though.

Regarsd,

Mark

Former Member
0 Kudos

Hi Indrajit,

    Thanks for replying. The fact is I don't know java, is there any other option ?