Skip to main content

Exception in time of generating client from Dot Net web service using wsimport

No replies
Debajit
Offline
Joined: 2014-01-15
Points: 0

Hi All,
I've a problem with an unresolved xs:schema.
I tried Vivek Pandey's solution.
http://weblogs.java.net/blog/vivekp/archive/2007/05/how_to_deal_wit_1.html

After following his direction , now I'm not getting the unresolved xs:schema error anymore ,though below exceptions are coming in time of generating the client. Please help.

Exception in thread "main" com.sun.xml.internal.ws.streaming.XMLReaderException:
Unable to create StAX reader or writer
at com.sun.xml.internal.ws.api.streaming.XMLStreamReaderFactory.create(X
MLStreamReaderFactory.java:134)
at com.sun.tools.internal.ws.wscompile.WsimportOptions.parseBindings(Wsi
mportOptions.java:415)
at com.sun.tools.internal.ws.wscompile.WsimportTool.run(WsimportTool.jav
a:160)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.tools.internal.ws.Invoker.invoke(Invoker.java:105)
at com.sun.tools.internal.ws.WsImport.main(WsImport.java:41)
Caused by: java.net.UnknownHostException: www.w3.org
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:195)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:388)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:523)
at sun.net.www.http.HttpClient.(HttpClient.java:227)
at sun.net.www.http.HttpClient.New(HttpClient.java:300)
at sun.net.www.http.HttpClient.New(HttpClient.java:317)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLC
onnection.java:970)