cancel
Showing results for 
Search instead for 
Did you mean: 

File --> XI--> Soap (File Attachment)

Former Member
0 Kudos

Dear SCN

I need to send data to a web service in the following format

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cor="http://com/sbi/corpfileuploadservices/CORPFILEUPLOADService">

<soapenv:Header/>

<soapenv:Body>

<cor:FILEUPLOADRequest>

<cor:fileUploadNo>200</cor:fileUploadNo>

<cor:fileUploadMTOMAttachments>cid:MIS-ERROR-REPORT.txt</cor:fileUploadMTOMAttachments>

</cor:FILEUPLOADRequest>

</soapenv:Body>

</soapenv:Envelope>

how should i build the source message structure so that i can receive attachments then pass it to a web service.

On the source side i have used the term base64binary, will it act like a attachment if i use "keep attachments" option" in the soap sender.

On the receiving side i have a wsdl with

<xsd:element name="fileUploadMTOMAttachments" type="xsd:base64Binary" xmime:expectedContentTypes="application/octet-stream" />

Will the soap adapter suffice on both the sides?

Accepted Solutions (1)

Accepted Solutions (1)

iaki_vila
Active Contributor
0 Kudos

Hi Monika,

Will the soap adapter suffice on both the sides?

You said that you have a File - SOAP scenario then you can only have the SOAP adapter in the receiver side.

To work with MTOM in PI you can read this help documentation http://help.sap.com/saphelp_nwpi71/helpdata/en/76/fc9c3d9a864aef8139d70759a499fc/frameset.htm

Regards.

Former Member
0 Kudos

No on the receiver side i am supposed to invoke a web service with attachment. So will plain soap adapter do? or do i need WS Adapter or Axis?

iaki_vila
Active Contributor
0 Kudos

Hi Monika,

As far as i know SOAP axis adapter supports MTOM, also you can check this Note 1755549 - SOAP/AXIS adapter doesn't create XOP/MTOM attachment

Regards.

Former Member
0 Kudos

Also

on the sender side what do i do configure a WS Adapter which takes attachment from ECC in MTOM format?

gagandeep_batra
Active Contributor
0 Kudos

Hi Monika,

did you see following thread.

http://scn.sap.com/thread/2057426

Regards

gAgan

Answers (1)

Answers (1)

Former Member
0 Kudos

Dear scn

Please let me know how to generate content id for mtom?

Regards

Monika