cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP receiver with Payload as attachment

sherin_jose4
Participant
0 Kudos

Hi,

I have a File to SOAP scenario to be developed.

I have not done any SOAP receiver scenario before and the requirement is that i have to attach the file in the SOAP payload and send it to the Receiver system. I do see there is an option in the SOAP channel which says " Payload as attachment " and hope that this option has to be checked for running this scenario. Now that i don't have a receiver Webservice running to test my scenario, i am pretty much confused on creating and testing the scenario.

I have a SOAP UI tool and a Source FTP location where the source file is placed. Please guide me to build this scenario and how do i test it in my develpment to check the Payload as attachment functionality.

Your help would be appreciated !

Accepted Solutions (0)

Answers (2)

Answers (2)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Use PayloadSwapBean module in the soap receiver adapter to send payload as attachment,  You don't need bpm scenario. Just search scn for the soap receiver scenario. You might also want to check this thread for getting the concept.

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

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

Former Member
0 Kudos

Hi Sherin,

For this type of scenario, you need to develope a BPM with a async-to-sync bridge, because File adapter use async communication, instead of sync communication that is used by Soap messages.

You can refer to this How-To:

http://scn.sap.com/people/kokil.handa/blog/2010/07/07/use-of-bpm-in-file--soap--file-pi-71-scenario-...

Here the async-sync bridge:

http://www.riyaz.net/sap/a-step-by-step-guide-to-bpm-asynch-sync-bridge/170/

Check also this 3d:

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

sherin_jose4
Participant
0 Kudos

Hi Simone,

Thanks for your reply.

Our client have informed us that they will be hosting a Webservice in their system and all we have to do is to post the SOAP message having the complete data in the payload. But, in your reply you have mentioned for the scenario File --> SOAP --> File . My scenario is just File --> SOAP ( Payload as attachment ).

Former Member
0 Kudos

For your requirement, don't follow "Response" messages&management in the help above.

In BPM, response management is the point C:

c) Asynchronous send step - receive the SOAP output message and send it to  file  adapter 

iaki_vila
Active Contributor
0 Kudos

Hi Simone,

As far as i know receiver SOAP adapter can deal asynchronous communication, if Sherin doesn't need response he could use a normal and easier FILE - SOAP  scenario without BPM.

Regards

Former Member
0 Kudos

Yes, I agree with Inaki,

However the help above could be useful for scenario configuration.

iaki_vila
Active Contributor
0 Kudos

Hi Sherin a little question for you,

Do you need the flat file as SOAP attachament or the file transformated in a XML document as SOAP attachment?

Depending your answer you can implement it in different ways.

Regards.

former_member184681
Active Contributor
0 Kudos

Hi,

Definitely agreed with Iñaki, there is no need to use BPM when it is not absolutely required. Simple file to SOAP scenario would be just enough.

Regards,

Greg

sherin_jose4
Participant
0 Kudos

Thanks for the replies.

Yes, i don't want any response and it is purely an asynchronous communication.

As Vila suggested, i need to bundle the file contents in the SOAP xml into the payload and send it to the receiver system. The file contents has to be bundled into the SOAP xml.

Please provide your inputs on the Integration and Testing procedures for this scenario.