on 03-27-2006 2:00 PM
I am calling a web service in my ABAP program using ABAP proxy. The code is as under:
TRY.
y_v_request-mt_request-yaskkey = y_l_matnr.
y_v_request-mt_request-maktx = y_l_maktx.
y_v_request-mt_request-ymtart = y_l_mtart.
CALL METHOD y_v_prxy->execute_synchronous
EXPORTING
output = y_v_request
IMPORTING
input = y_v_response.
CATCH cx_ai_system_fault INTO y_v_fault.
y_v_message = y_v_fault->errortext.
ENDTRY.
y_l_ycod = y_v_response-mt_response-answer.
1. Is there is any way to know that the called web service has timed out ?
2. Is it possible to check for the time spent in the call if it is more then say 500 sec then it should be considered as timeout?
Any help will be appreciated.
Thanks in advance
Hi Subbu,
you can catch CX_AI_SYSTEM_FAULT.
DATA: lo_sys_exception TYPE REF TO cx_ai_system_fault,
l_error_text type string.
CALL METHOD ...
CATCH cx_ai_system_fault INTO lo_sys_exception.
l_error_text = lo_sys_exception->errortext.
You can configure XI timeout parameter (for shure in SMICM / Parameter and, if i remeber right, as profile parameter in XI administration).
Regards,
Udo
Message was edited by: Udo Martens
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you expose WebService through SOAMANAGER configuration, there is a setting under "Transport Settings" - "Maximum Wait for WS Consumer".
This is the maximum waiting time in seconds we accept to wait. A useful configuration if we do not want to make program hanging for a long time.
Regards,
Adam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
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.