Hi All,
Once we access the service consumer proxy in SAP system, in case of exceptions like system fault then we need to access the actual XML response to see the exact error message like what we see in SOAP UI or SRT_UTIL Tcode under error log details. Is any one worked on this?
I have some blogs but it is not functioning as expected.
http://sapxitutorials.blogspot.com/2011/04/consuming-webservices-with-tag-in-wsdl.html
https://help.sap.com/saphelp_nw70ehp2/helpdata/en/51/d5cd16235e4643ae8ec92395c4ad97/content.htm
example :
TRY.
CLEAR lw_response.
CALL METHOD LR_Proxy->search
EXPORTING
input = lw_XYZ
IMPORTING
output = lw_response.
CATCH cx_ai_system_fault INTO lo_sys_exception.
lv_error = lo_sys_exception->get_text( ).
ENDTRY.
Field lv_error value is 'SOAP:1,007 SRT: Unsupported xstream found: ("HTTP Code 500 : Error")'
SOAP UI or SRT_UTIL Tcode Error message value is 'Failed to establish a backside connection'
Thanks,
Vij