Problem while consuming external webservice using WSClient <p>i am using wsclient plugin to consume external web services.</p> <pre><code> proxy = new WSClient("http://www.w3schools.com/webservices/tempconvert.asmx?WSDL", this.class.classLoader) proxy.initialize() result = proxy.CelsiusToFahrenheit(0) println "You are probably freezing at ${result} degrees Farhenheit" </code></pre> <p>when i execute this sample code, i am getting <code>ServiceConstructionException</code> error.</p> <p>Stacktrace as follows:</p> <pre><code>org.apache.cxf.service.factory.ServiceConstructionException: Could not resolve URL "http://www.w3schools.com/webservices/tempconvert.asmx?WSDL" at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.composeUrl(DynamicClientFactory.java:611) at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:251) at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:196) at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:175) at groovyx.net.ws.AbstractCXFWSClient.createClient(AbstractCXFWSClient.java:198) at groovyx.net.ws.WSClient.initialize(WSClient.java:107) at groovyx.net.ws.IWSClient$initialize.call(Unknown Source) at ConsoleScript2.run(ConsoleScript2:5) Caused by: java.net.ConnectException: Connection timed out: connect at org.apache.cxf.resource.URIResolver.tryFileSystem(URIResolver.java:161) at org.apache.cxf.resource.URIResolver.&lt;init&gt;(URIResolver.java:90) at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.composeUrl(DynamicClientFactory.java:603) ... 7 more </code></pre> <p>i couldn't find what is wrong. Please help me.</p>