ws.js icon indicating copy to clipboard operation
ws.js copied to clipboard

Time Out for SOAP Client

Open alpeshrpatel opened this issue 9 years ago • 2 comments

Hey,

We are consuming SOAP end-point and some of end-point are taking more time to response.

If you have any option for setting up time out . Please reply me ASAP.

Rgds, Alpesh

alpeshrpatel avatar Sep 02 '16 23:09 alpeshrpatel

if the endpoint does answer at the end (connection is not stack) then this does not seem an issue with ws.js. try calling the endpoint with curl (or a c# client) and you will probably get the same results.

yaronn avatar Sep 03 '16 08:09 yaronn

ok now I understand you ask how to configure a timeout. ws.js does not expose this setting, but ws.js uses the 'request' module which should support this setting, in which case you can change ws.js code here:

https://github.com/yaronn/ws.js/blob/master/lib/handlers/client/http.js

just maybe you can do it without changing the ws.js code bu requiring 'request' in your code before you require ws.js, which should give the effect of default setting to all of the requests, but not sure about it.

yaronn avatar Sep 03 '16 08:09 yaronn