wsdl - Web service Axis2 client code generation issue -
I am trying to consume the web service created using Axis 2, so I used to create client code Have followed
I have a closing point and I am able to access it through the browser. But the client is trying to generate the code like this:
WSDL2Java.bat -uri & lt; & Lt; Endpoint & gt; & Gt; -o client throws the exceptions given below:
Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: WSDL Error parsing org.apache.axis2.wsdl.codegen.CodeGenerationEngine. (CodeGenerationEngine.java:181) at org.apache.axis2.wsdl.WSDL2Code.main (WSDL2Code.java35) at org.apache.axis2.wsdl.WSDL2Java. Because of the main (WSDL2Java.java:24): java.net.ConnectException: connection time out: java.net.PlainSocketImpl.doConnect (PlainSocketImpl.java351) java.net.PlainSocketImpl.socketConnect (native resident method) On connect to java.net.PlainSocketImpl.connectToAddress java.net.PlainSocketImpl.connect (PlainSocketImpl.java:213) java.net.SocksSocketImpl.connect on java.net.Socket (SocksSocketImpl.java: 366) .connect (Socket.java ** 29) com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect (SSLSocketImpl.java Tell70) com.sun.net.ssl.internal.ssl.baseSSLSocketImpl.connect on (BaseSSLSocketImpl .java: 141) at sun.net Networks Client. Connect to sun.net at (http://www.whatp.client.javas2525) on Do Sun.net.www.http.HttpClient.openServer (sunset.com) at http: //www.Http.HttpClient.openServer (HttpClient.javas2525) (Network Client. Java: 1263). Www.protocol.https.HttpsClient (HttpsClient.javaociety72) sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection at sun.net.www.protocol.https.HttpsClient.New (HttpsClient.java:329). Sun.net.www.protocol.http at http: //www.protocol.https.AbstractDelegateHttpsURLConnection.connect (HttpURLConnection.java:923) getNewHttpClient (AbstractDelegateHttpsURLConnection.java:172) (AbstractDelegateHttpsURLConnection.java158) sun.net.www (httpsURLConnectionImpl.java318) at sun.net.www.protocol.http.HttpURLConnection.getInputStream (HttpURLConnection.java:1195) at protocol.https.HttpsURLConnectionImpl.getResponseCode at java.net.HttpURLConnection.getResponseCode (HttpURLConnection.java379) org at .apache.axis2.wsdl.codegen.CodeGenerationEngine (CodeGenerationEngine.java:99) ... 2 more Te>
What could be the cause of this error?
If you can access WSDL from a browser but not in the command line, then it is possible That your browser uses a HTTP proxy for connection, while wsdl2java goes directly to the address
Try to define some JVM parameters to use a proxy, as described and If it fails, download the WSDL with the browser Area and the option of running the wsdl2java with locally downloaded file went always.
Comments
Post a Comment