aspose file tools*
The moose likes Web Services and the fly likes Help on JAX WS    Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Help on JAX WS    " Watch "Help on JAX WS    " New topic
Author

Help on JAX WS

sundaram venugopal
Greenhorn

Joined: Jul 24, 2008
Posts: 7
Hi,

I am using JAX WS to consume a .NET web service.
While trying to invoke the service, i get the following error :



I suspect this to be an issue with the HTTP Protocol version. I know how to change the HTTP version in an Apache Axis generated stub. But how do i do in JAX WS?

Though I am not using Axis in my code, the port configuration loads an instance of org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler since axis is in my classpath.

Any help would be appreciated.

Thanks
Venu
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41880
    
  63
Also posted on forums.sun.com. Please BeForthrightWhenCrossPostingToOtherSites.


Ping & DNS - my free Android networking tools app
sundaram venugopal
Greenhorn

Joined: Jul 24, 2008
Posts: 7
Hi,

I regret for having caused an inconvenience.
Yes, I have also posted the same at http://forums.sun.com/thread.jspa?threadID=5438745. No reply yet.

If someone can help me, that would be useful.

Thanks
Venu
sundaram venugopal
Greenhorn

Joined: Jul 24, 2008
Posts: 7
No clue???
R Srini
Ranch Hand

Joined: Feb 19, 2010
Posts: 215
Hi. Is the issue resolved? If yes, kindly post the resolution. If not, well ... here are two links that might help. Not sure if you come across these:

1. http://mail-archives.apache.org/mod_mbox/ws-axis-user/200606.mbox/%3C84f31d220606111915l6bf2c5e2p45085c7d1de64e6a@mail.gmail.com%3E

2. http://java.sun.com/javase/6/docs/api/javax/xml/ws/spi/Provider.html - Here, it mentions this: "If the $java.home/lib/jaxws.properties file exists and it is readable by the java.util.Properties.load(InputStream) method and it contains an entry whose key is javax.xml.ws.spi.Provider, then the value of that entry is used as the name of the implementation class." As it suggests, you could try creating jaxws.properties and then specify the provider you want it to use. Or define a system property:
Of course, I still don't understand why both axis and [whatever you are using] need to be in the classpath. Maybe a minor refactoring - put the code in different projects or maybe segregate the deployment somehow - can fix that.

Best of luck! Let us know how it goes.

Srini
sundaram venugopal
Greenhorn

Joined: Jul 24, 2008
Posts: 7
Hi Srini,
There is a maintenance going on at our customer side (i mean the service is not accessible). It would not be available for a week or so. Once the service is up, will definitely keep you posted of the proceedings. Thanks again for your help.
Santhosh Narasimhan
Greenhorn

Joined: Feb 09, 2012
Posts: 3
Any updates on this?
I am facing similar issue where 501 Not implemented is thrown intermittently. I do not have Axis and JAX-WS in my environment.

com.sun.xml.ws.client.ClientTransportException: The server sent HTTP status code 501: Not Implemented
at com.sun.xml.ws.transport.http.client.HttpTransportPipe.checkStatusCode(HttpTransportPipe.java:311) [jaxws-rt.jar:2.2.5]
at com.sun.xml.ws.transport.http.client.HttpTransportPipe.createResponsePacket(HttpTransportPipe.java:260) [jaxws-rt.jar:2.2.5]
at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:218) [jaxws-rt.jar:2.2.5]
at com.sun.xml.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:137) [jaxws-rt.jar:2.2.5]
at com.sun.xml.ws.transport.DeferredTransportPipe.processRequest(DeferredTransportPipe.java:138) [jaxws-rt.jar:2.2.5]
at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:641) [jaxws-rt.jar:2.2.5]
at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:600) [jaxws-rt.jar:2.2.5]
at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:585) [jaxws-rt.jar:2.2.5]
at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:482) [jaxws-rt.jar:2.2.5]
at com.sun.xml.ws.client.Stub.process(Stub.java:323) [jaxws-rt.jar:2.2.5]
at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:161) [jaxws-rt.jar:2.2.5]
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:113) [jaxws-rt.jar:2.2.5]
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:93) [jaxws-rt.jar:2.2.5]
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:144) [jaxws-rt.jar:2.2.5]
at $Proxy37.waitForUpdates(Unknown Source) [na:na]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Help on JAX WS