cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP Fault message

Former Member
0 Kudos

Hi,

My scenario is RFC to SOAP sync.

RFC has only import and export paramters (Exception is part of Export Parameter)

SOAP message has Request,Response and fault messages.

I want to map both SOAP response and fault messages to RFC Response message in this <b>synchronous scenario</b>.

Can any one help me to solve this problem.

Note: I have already referred related blogs.

Thanks,

Uma

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Uma,

you can use a wrapper Function Module with exception.

So, you can fetch your fault message as exception pretty easily.

No BPM ..no complexity..:)

Regards

Pushkar

Former Member
0 Kudos

Hi Pushkar,

Thanks again for your reply.

I cannot use wrapper RFCs as per the requirement.

Regards,

Uma

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi, In this case you have two options.

Either you create an adapter module to copy the fault message in your response and map your response to ur RFC response .

Else use BPM.

Regards

Pushkar

Former Member
0 Kudos

Hi Uma,

this is pretty easy.

you define an exception in ur RFC.

When you import ur RFC in IR, you get three message types attached.

Request, Response & Fault.

Similarly when you import a WSDL for ur webservice , you have a request , response and fault message attached.

now you define three message mappings .(req res & fault).

And you have one interface mapping where you need to specify all these 3 message mappings.

And whenever your webserver sends any fault message that is sent back as an exception to ur RFC.

If you need any more input from me please let me know.

n dont forget my sdn points..:)

Regards

Pushkar

Message was edited by:

Pushkar Anand

Former Member
0 Kudos

Hi Pushkar,

Sorry forgot to mention that it is a standard RFC.

Thanks for your reply.

Regards,

Uma

manish_bhalla2
Contributor
0 Kudos

Hi,

One way would be for you to use a BPM between the RFC and the SOAP. Inside the BPM, put a switch based on whether the response or fault message is populated, and have the mappings between the response -> response and fault-> response messages on separate branches. That way either one of the messages will populate the response message to your RFC.

Cheers

Manish

Former Member
0 Kudos

Hi Manish,

Actually I don’t want to use BPM here considering the performance.

Thanks for your suggestion.

Regards,

Uma

manish_bhalla2
Contributor
0 Kudos

Yeah, I wouldn't use a BPM unless absolutely forced to... but couldn't think of anything else to suggest.

Do let us know of you manage to find some other way.

Cheers

Manish