cancel
Showing results for 
Search instead for 
Did you mean: 

How to raise a soap fault for "business errors"

Former Member
0 Kudos

Hi folks,

I have a scenario.

sync

SOAP<->PI<->RFC

If the update to ECC failed then the RFC response will give back an Error Code in one of the fields, another field will indicate the error description,

I will need to raise a soap fault with this error code and description in the soap fault.

Note , there is only Req and response in the RFC, no fault in the RFC,

Please advice me on this.

Thanks,

Hank

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I think this could be resolved using multi-mapping.

(RFC)Response - (SOAP) Response

-(SOAP) Fault

In the response mapping, we have RFC response as the source structure , SOAP Response and SOAP Fault as the target structures.DO the validation for ErrorCode and Error Validation in the mapping. Soap Response structure would be generated for succesful RFC response. Soap Fault structure would be generated in case of RFC response containing error code and error message.

Hope it works.

Regards,

Swetha.

Former Member
0 Kudos

Thank u very much , will try it and update the stat here...

Former Member
0 Kudos

This didn't work

It was a synchronous process, when i tried to define the Interface mapping, it failed to activate saying that the Message Mapping has a MT at Position2 which does not match the interface.

Thanks for the tips!

Hank