Need clarification regarding 'axis2_options_set_timeout_in_milli_seconds' api.
Hello Axis2C team,
I am writing a client using axis2/c apis. I am using sync call ‘axis2_svc_client_send_receive_with_op_qname’ to send the payload.
So now I have two questions,
1.May I use ‘axis2_options_set_timeout_in_milli_seconds’ to set the timeout value? I do not want client to block forever if there is no response from
[There is some contradictory statements between Axis2/c and axis2/java documentations of the above api.!!
“Sets the time out in milli seconds. This is used in
asynchronous message exchange scenarios to specify how long the call back object is to wait for the response.”
But axis2/java says
“This is used in
blocking scenario. Client will time out after waiting this amount of time.”
So one is saying it is to be used in ‘blocking’ mode and other says it is to be used in ‘non-blocking’ mode. Is that implemented differently in Axis2C and
2.This timeout should not be specific to ‘blocking’ or ‘non-blocking’ scenario right? In either case I do not want to wait for the response (in blocking
mode it is in same thread and in non-blocking mode call back object will wait for the response!) forever when there is no response from the server. How do I achieve this?