cancel
Showing results for 
Search instead for 
Did you mean: 

Error handling using fault message type in outbound synchronous ABAP proxy

rohit_goel
Participant
0 Kudos

Hi,

We've a scenario, outbound synchronous ABAP proxy to synchronous SOAP receiver. The requirement is to send multiple records in a single rquest and get response for all the records sent (in the same response message).

Say if I send 10 records from ECC, I should get 10 records as response from SOAP to ECC. But the problem here is, there could be some invalid requests, for which an invalid error status code should be sent as part of response.

Source Structure

Req_Proxy

req (0..unbounded, string)

Response Structure

Resp_SOAP

Resp (0..Unbounded)

respString (0..1, String) (carries the actaul response message)

status code (0..1, String) (carries the status of the response, for ex, 001 (successful), 002 (error))

And now we are planning to make use of Fault Message Type, to track the errors from SOAP (status code 002). But, we are not sure on how to track this for all the requested records. Is it possible to track the errors for all the requested records in a singe call using fault message type? For eg if 8 records are successful and 2 are invalid, then we should get 10 records in response 8 for valid and 2 for invalid accordingly.

Please calrify.

Thanks.

Rohit

Accepted Solutions (0)

Answers (2)

Answers (2)

udo_martens
Active Contributor
0 Kudos

Hi Rohit,

a fault message type makes no sense there as it describes a complete failed message.

Anyway, your design is quite unusual and from my point of view doubtful. Standard is to give back a success message (everything was ok) or a failure message (nothing was changed at target system). Any error reaction would be much easier. Reprocessing has always to consider that some values could be written into target system.

Regards,

Udo

former_member200962
Active Contributor
0 Kudos
For eg if 8 records are successful and 2 are invalid, then we should get 10 records in response 8 
for valid and 2 for invalid accordingly.

Check if you can modify the WSDL structure to include an error node that would get populated incase of invalid entries....this would mean that you get the success and failure details in the single message....also at the proxy-end make the necessary change in your DT.....may be then you do not need to use the fault message...

Regards,

Abhishek.