Question

What is the proper way for specifying the timeout in wsclient.

I tried in my griffon controller this :

withWs([wsdl: model.wsdl, timeout:1800000])

but it does not seem to work.

Any hints?

Problem solved by doing this :

withWs(wsdl: model.wsdl){
    setConnnectionTime(1800000)
    ...
}
Was it helpful?

Solution

It shouldn't matter much but try removing the square brackets from the call, like this

withWs(wsdl: model.wsdl, timeout:1800000) { ... }

According to line 101 of WsclientConnector the timeout parameter should be honored by the WS client

if(params.containsKey('timeout')) client.setConnectionTimeout(params.remove('timeout'))
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top