Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help on JAX WS

 
sundaram venugopal
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also posted on forums.sun.com. Please BeForthrightWhenCrossPostingToOtherSites.
 
sundaram venugopal
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No clue???
 
R Srini
Ranch Hand
Posts: 215
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic