on 09-05-2012 8:53 PM
Dear Experts,
In an SOAP - PI - Proxy synchronous scenario, can the system errors be caught and sent back to the sender SOAP application using CX_AI_SYSTEM_FAULT? If not, what's the best way to report system errors like divide/0 or passing a invali value for a datatype?
Thanks,
ok, the reason I've this question is I'm asked to avoid schema valdation but, capture all sort of errors in fault messages like data length issue in proxy (deserializing transformation error if length of the data exceeds than the specified length), wrong data type error, etc. I'm not sure if its feasible to capture and respond such errors to the source system with fault message type?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the prompt response. The examples I mentioned may be validation related,but, my requirement is to capture any system errors with Try/Catch and pass it back to the sender using fault message type. Is that possible?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>ike if I miss to validate divide by zero, I want to capture
Write a validation logic before you process the proxy data. If you have validation issues, dont process the data instead send as fault message to the sender system. This is not technically classified as system errors. The missing validation causes error in the ecc side.
The adavtage with server ABAP proxy is we can fault message types , do validation in ABAP proxy level and catch all exception and send as a fault message response.
Or
Accomadate couple of fields in ABAP proxy structure(data type) and perform validation at Proxy level and pass validation results are part of response Proxy structure.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> If not, what's the best way to report system errors like divide/0 or passing a invali value for a datatype?
This seems application invalid data issues. You can use mapping to validate the values or validate in abap proxy coding and send the response as fault message.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.