10-19-2015 1:01 PM
Hi experts how can i by abap create a time limit to response of a web service created by PI?
Or it isnt possibe in abap and only the PI Can´do it.?
TRY.
CREATE OBJECT lr_ser.
CATCH cx_ai_system_fault.
ENDTRY.
TRY.
CALL METHOD lr_ser->solucao_sintegra
EXPORTING
output = output
IMPORTING
input = input.
CATCH cx_ai_system_fault INTO lr_oref.
ENDTRY.
Its sproxy service.
When it dont find data It takes a long time to response that doni find data.
I want to define a timelimit to response.by ABAP.
10-19-2015 1:50 PM
Hi Ronaldo,
I think it would be better check why the WS from PI takes so long when it has no data to return....
As far as i know, and maybe i'm wrong , the only way to achieve (to shorten) a HTTP connection timeout is with the ICM parameters, and you need hep from Basis people to do so...
Anyway, if you force a timeout before the response comes you won't know if the call has been sucessfull...
Within the ABAP proxies there's an option to make the call asyncronous... maybe you could try this approach, although i think you should first check the issue on PI.
just some ideas ..
Regards