This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Web Services and the fly likes JAX-WS Client for 1.4.2 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "JAX-WS Client for 1.4.2" Watch "JAX-WS Client for 1.4.2" New topic
Author

JAX-WS Client for 1.4.2

jax ws
Greenhorn

Joined: May 18, 2012
Posts: 3
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?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35252
    
    7
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.


Android appsImageJ pluginsJava web charts
jax ws
Greenhorn

Joined: May 18, 2012
Posts: 3
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
Marshal

Joined: Mar 22, 2005
Posts: 35252
    
    7
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.
 
jQuery in Action, 2nd edition
 
subject: JAX-WS Client for 1.4.2
 
Similar Threads
Jax-ws 2.1 webservice and jetty 5
I need to write a client for Testing the SEI implemented as stateless session bean
How to do ???
JAX-WS RI wsimport not working
problem while calling a web service client