If you are using a proxy for accessing internet, you can use the following environment variables to get rid of it:
or directly use the following in your code:
proxy.setProxyProperties([:]) // map containing all or part of the above properties |
The proxy will not be used when the WSClient accesses the WSDL during initialization.
If your server use basic authentication, you need to set up the following properties:
or directly use
proxy.setBasicAuthentication(user, password) |
If your want to set a time out value for the connection to the server just use:
proxy.setConnectionTimeout(value_in_milliseconds) |
If your server is proposing SOAP 1.2 endpoints, then you can use:
import groovyx.net.ws.cxf.SoapVersion proxy.setPreferredSoapVersion(SoapVersion.SOAP_1_2) |