cancel
Showing results for 
Search instead for 
Did you mean: 

Exception handling in receiver sync SOAP comm channel

Former Member
0 Kudos

Hi experts,

We are developing following synchronous scenario: sRFC to SOAP.

In this, XI sends some data to an application and the application sends back the response. No problem so far.

However, this application can throw exceptions that we want to send back to SAP, these exceptions are not part of a message and we can only see them AS AN ERROR IN SXI_MONITOR in the receiver SOAP header, in the error tab, they look like:

"com.sap.engine.interfaces.messaging.api.exception.MessagingException: SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault:

"

Questions:

Is there any way to get these exceptions from the application and send them back to SAP as if they were the SOAP.response message??

What if we select Keep headers in the receiver SOAP channel?

do we need to create a fault message type and assign it in ID?

Any ideas?

Best regards,

David

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member200962
Active Contributor
0 Kudos

check for the possibility of raising an alert which has SXMS_TO_ADAPTER_ERRTXT as the Container variable....so if there is an error this alert variable will get populated and you will receive an alert....applicable only for adapter engine alert...

for more information: http://help.sap.com/saphelp_nw70/helpdata/EN/d0/d4b54020c6792ae10000000a155106/frameset.htm

Regards,

Abhishek.

Former Member
0 Kudos

This could be the problem related to mismatch of response with the specified fromat of SOAP. cross check the versions of SOAP in adapter configuration and in the webservice.

Regards,

Reyaz

Shabarish_Nair
Active Contributor
0 Kudos

you will need to use fault messages

some references are;

Fault messages -

/people/shabarish.vijayakumar/blog/2006/11/02/fault-message-types--a-demo-part-1

Handling Web Service SOAP Fault Responses in SAP NetWeaver XI -

/people/jin.shin/blog/2007/05/21/handling-web-service-soap-fault-responses-in-sap-netweaver-xi