This week's book giveaway is in the Spring forum.
We're giving away four copies of Spring in Action (5th edition) and have Craig Walls on-line!
See this thread for details.
Win a copy of Spring in Action (5th edition) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

JAX-WS Client for 1.4.2  RSS feed

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a JAX- web service generated using JDK 6. I need to generate a client for it which could run on 1.4.2 environment. Is this possible?
I keep getting "UnsupportedClassVersionError" when I try to run wsimport on the client as shown below:

$ $JAXWS_HOME/bin/wsimport.sh -verbose -B-XautoNameResolution -s . http://127.0.0.1:8080/ReqQuery/query?wsdl
java.lang.UnsupportedClassVersionError: com/sun/tools/ws/WsImport (Unsupported major.minor version 49.0)

Is there anything I need to take care of?
 
Rancher
Posts: 42974
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JAX-WS requires Java 5. You need to create the client code some other way. Or upgrade to Java 6; Java 1.4 had been obsolete for years.
 
jax ws
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, I thought so but wanted to make sure. Unfortunately the client is for another company's
system having Java 1.4.2 , which I dont have a control on. Can you give some ideas on other ways to generate only the client, if I have the webservice
generated using JAX-WS and Java 6?
 
Ulf Dittmer
Rancher
Posts: 42974
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The download of the SAAJ API for Java 1.4 would be one option if you feel like writing the code yourself.

Or use Axis or Axis2 for creating the code; older versions-if not the current one- should be compatible with Java 1.4.
 
What's gotten into you? Could it be this tiny ad?
Download Free Java APIs to Work with Office Files and PDF
htttp://www.e-iceblue.com/free-apis.html
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!