Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Need to make a web service for JDK 1.3  RSS feed

 
Alejandro Ross
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,

I urgently need to make a working web service for Java 1.3
However, I have tried to run something and nothing seems to work
(NoClassDefError etc). What jars do I need? I have tried several methods
and nothing works. If anyone can send me instructions for creating one,
or a zip of a simple web service in JDK 1.3, it would be greatly appreciated!

Thanks,

Alex
[ June 23, 2006: Message edited by: Bear Bibeault ]
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you thinking about a REST or SOAP architecture? A lot of the SOAP stuff requires JDK 1.4 by now, notably Apache Axis 1.2 and newer (not sure about older Axis releases). What have you tried so far? Maybe that can be made to work.
 
Alejandro Ross
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is driving me insane and I really need some knowledgable help here.

I tried using WTP for eclipse and wsdl2java. Not sure what has gone wrong. Libraries have changed for XML etc, so I'm not sure what to do, but I'm going to have to come up with a solution later this week. If I have .jar files compiled using 1.4.2, can they be used by a jar that is compiled by 1.3? My constraints are the following:

All class and jar files need to work with JRE 1.3

Any suggestions would be greatly appreciated,

Alex
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I have .jar files compiled using 1.4.2, can they be used by a jar that is compiled by 1.3?

You will need to compile using the "-target 1.3" switch, and, of course, the source must not contain 1.4-specific methods/classes.

Since you seem to have no idea of what kind of client software, or server software, or even what architecture to use, it's a bit hard to advise you. Normally I'd point out a few articles that'll get someone going with Axis on the server and SAAJ or JAX-RPC on the client, but the recent versions do not support Java 1.3.
[ June 21, 2006: Message edited by: Ulf Dittmer ]
 
Alejandro Ross
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ulf, thanks for quick responses.

Question to all: Given a WSDL document of today (whatever SOAP standards are current), can I build a Web Service Client using only JDK 1.3 to use the WSDL?

If so, what is the best suggested setup for this. I've googled everywhere, and the only one seems to be Axis which says I can use JDK 1.3, but their axis.jar is compiled with 1.4.2? Isn't that a problem? Thanks.

Alex
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're right, it says 1.3 is supported. What was I reading/thinking before? Not enough coffee, obviously...

The fact that it is compiled with 1.4 doesn't matter (the 1.4 compiler can emit output for any JDK version), as long as they used the switch I mentioned above. And they must have done that, or they couldn't claim 1.3 compatibility. So if that works, you could start using/creating web services along the lines of this article.

And yes, you can the wsdl2java tool that comes with Axis to create client classes that access the service described by the WSDL.
[ June 21, 2006: Message edited by: Ulf Dittmer ]
 
Alejandro Ross
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Has anyone built a web services client that runs entirely using JRE 1.3.1?? I need to know if it's possible and how to do that... I don't think I'll be allowed to use jars compiled with java 1.4. I have no idea at the moment.

Thanks,

Alex
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!