This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Web Services and the fly likes com.sun.xml.ws.client.ClientTransportException JAX-WS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "com.sun.xml.ws.client.ClientTransportException JAX-WS" Watch "com.sun.xml.ws.client.ClientTransportException JAX-WS" New topic
Author

com.sun.xml.ws.client.ClientTransportException JAX-WS

Itz Me
Greenhorn

Joined: Jul 16, 2009
Posts: 3
Hello All,

I have a WSDL file on a remote server. I created a web service client in netbeans (JAX-WS). I tried to access the client generated by netbeans using the following code:

MyClient cli= new MyClient ();
MyPortType port = cli.getMyWsdConcatPort();
System.out.println(port.myMethod("part1.......", "concanted with part2........"));

I am getting the following error:
com.sun.xml.ws.client.ClientTransportException: The server sent HTTP status code 401: Invalid Session ID or Session Expired
at com.sun.xml.ws.transport.http.client.HttpTransportPipe.checkStatusCode(HttpTransportPipe.java:222)
at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:179)
at com.sun.xml.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:93)
at com.sun.xml.ws.transport.DeferredTransportPipe.processRequest(DeferredTransportPipe.java:105)
at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:629)
at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:588)
at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:573)
at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:470)
at com.sun.xml.ws.client.Stub.process(Stub.java:319)
at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:157)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:109)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:89)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:140)
at $Proxy29.stringConcat(Unknown Source)
at MyJava.MyJava.main(MyJava.java:33)
Apr 26, 2011 8:16:04 AM MyJava.MyJava main
SEVERE: null
com.sun.xml.ws.client.ClientTransportException: The server sent HTTP status code 401: Invalid Session ID or Session Expired
at com.sun.xml.ws.transport.http.client.HttpTransportPipe.checkStatusCode(HttpTransportPipe.java:222)
at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:179)
at com.sun.xml.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:93)
at com.sun.xml.ws.transport.DeferredTransportPipe.processRequest(DeferredTransportPipe.java:105)
at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:629)
at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:588)
at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:573)
at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:470)
at com.sun.xml.ws.client.Stub.process(Stub.java:319)
at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:157)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:109)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:89)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:140)
at $Proxy29.stringConcat(Unknown Source)
at MyJava.MyJava.main(MyJava.java:33)
BUILD SUCCESSFUL (total time: 2 seconds)


Any help is appreciated.

Regards,
Nid..................
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: com.sun.xml.ws.client.ClientTransportException JAX-WS