Hi Gurus
I' m new at XI and webservices but we have set up a small asynchrone web service on provider and consumer side and we are trying to generate an application error. This is the code that we use. So we raise in all cases an application error.
DATA: l_standard_data TYPE ztestexchange_fault_data,
l_standard TYPE ztestexchange_fault_data,
l_detail_data type ztestexchange_log_data.
*/ Test 1: Raise an negative application acknowledgement
l_standard_data-fault_text = 'No name was supplied'.
l_detail_data-severity = 'Error'.
l_detail_data-text = 'No user found in the incoming File'.
l_detail_data-id = '01'.
l_detail_data-url = 'Usernull'.
APPEND l_detail_data TO l_standard-fault_detail.
RAISE EXCEPTION TYPE ztestcx_ackt_test_fault_messag
EXPORTING
* TEXTID =
* PREVIOUS =
* AUTOMATIC_RETRY =
* CONTROLLER =
* NO_RETRY =
standard = l_standard_data.
In the monitor sxmb_moni we see always the icon that says no erros is acknowledgment.
What are we doing wrong?
I have read this blog and we done exaclty the same: Fault Message Types - A Demo (Part 1)
Help is much appriciated!!
Kristof
Edited by: Kristof De Bruecker on Jul 17, 2008 9:02 AM