cancel
Showing results for 
Search instead for 
Did you mean: 

How to send SOAP Message with attachments?

Former Member
0 Kudos

Hi All,

I am working on a SOAP to RFC Scenario With specific requirement of handling the attachment(Mainly Excel Attachments) at the Sender SOAP Adapter.

Kindly Suggest.

I found lot of theoritical stuff but no practical scenario.

Regards,

Sachi

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Sachi,

To handle attachment in SOAP sender adapter first of all you will have to use the AXIS message protocol.

Then by using MessageTransformBean you can handle the attachment.

1) Check this link for the module processing sequence used to get the attachment from SOAP

2) Check this blog which will help you on the usage of MessageTransformBean

http://help.sap.com/saphelp_nw04/helpdata/en/24/4cad3baabd4737bab64d0201bc0c6c/frameset.htm

using MessageTransformBean you can handle only the text file attachments like comma separated file, pipe separated, fixed lengths etc. But if you are looking to handle a excel file you will have to use a java mapping to get the data from excel attached file. for this have a look at this following blog by Shabarish:

Do remember to use SOAP Axis adapter and to tick the keep attachment option.

Hope this helps.

Regards,

Aravind

Former Member
0 Kudos

Thanks for the reply guys.

But my scenario here requires that I do not have read this attachment but pass it as it is to receiver which is RFC.

I am developing a SOAP to RFC scenario where the web service is have having excel attachment.

Is this possible?? Will RFC at R/3 will be able to accept attachments?

If you have a scenario for this or any link explaining the scenario. Please suggest.

rajasekhar_reddy14
Active Contributor
0 Kudos

not sure about RFC adapter but ABAP proxy supports attchment..search in sdn.

Former Member
0 Kudos

Hi Raja,

Can you suggest me how can achieve the sender part.

I have to access a web service which has excel attchment.

I need not have to read this attchment but just pass it on to receiver.

So many llink are there in sdn which suggest writing a adapter module or using SOAP Axis adapter.

But I do not have to read the attchment.

Kindly suggest.

Thanks.

Former Member
0 Kudos

Hi,

In the sender side if you are not looking to read the attachment then it is simple.

Just use the SOAP AXIS adapter and select the keep attachment option,

In the communication channel select the following

Adapter: SOAP

Transport Protocol: Servlet

Message Protocol: Axis

Then under XI Parameters tick the option Keep Attachments.

Hope this helps

Thanks,

Aravind

Former Member
0 Kudos

Thanks Ajnayak

Former Member
0 Kudos

Hi Arvind,

Now can you help me acheiving the receiver side.

I have to pass this attchments to RFC. Will RFC be able to take the attchments as is it?

If not RFC, then should I go for proxy scenario??

Please suggest.

Former Member
0 Kudos

Hi,

Do you want to send the excel file to the R3 as an attachment or as main payload?

Regards,

Aravind

Former Member
0 Kudos

As attachment.

Former Member
0 Kudos

Sending Attachment with SOAP adapter might not be possible.

Refer:

Regards

Ramesh