Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Does Axis 1.2 require Java 5.0?

 
Henry Wong
author
Marshal
Pie
Posts: 20833
75
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to port an application that originally used Axis 1.1 to Axis 1.2. However, the generated code doesn't compile. It looks like some of the code is assigning primatives to wrapper objects.

With Java 5.0, this is not a problem with autoboxing. Unfortunately, I am using Java 1.4.2.

Question. Does Axis 1.2 require Java 5.0? And if it doesn't, am I missing something? Like maybe a parameter to axis-wsdl2java?

This is probably something annoying simple.

Many thanks in advance.
Henry
 
Henry Wong
author
Marshal
Pie
Posts: 20833
75
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay... everyone tells me to go with Axis 1.1 -- as it is very stable. I will do this.

But does anyone happen to know if there is a Java 1.5 retriction with Axis 1.2? I would still like to know.

Thanks,
Henry
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Henry Wong:
But does anyone happen to know if there is a Java 1.5 retriction with Axis 1.2? I would still like to know.

No.. I clearly remembered I used Axis 1.2alpha with jdk1.4.2.
Just recently i updated my jdk to 1.5 and i dont have two machines to prove my point.
 
Steve Stewart
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Henry

Balaji is correct. Axis 1.2 works fine with 1.4.2. It also works fine under 1.5 too.

I've been using 1.2 for a few months, well the Release Candidates anyway and it appears to work as intended.
Steve
 
Henry Wong
author
Marshal
Pie
Posts: 20833
75
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks... I guess when I have the time, I'll take a look at it again. It is probably something really minor.

Henry
 
Ashutosh Shahi
Ranch Hand
Posts: 36
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Henry,
Axis 1.2 very much works with JDK 1.4. Guess your problem is with typemapping. Axis 1.1 puts typemapping as 1.1 by default and in Axis 1.2, the default is 1.2, though the doc still stays 1.1.

Try giving --typeMappingVersion 1.1 to WSDL2Java and see if it helps.

Ashutosh
 
Henry Wong
author
Marshal
Pie
Posts: 20833
75
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ashutosh Shahi:
Henry,
Axis 1.2 very much works with JDK 1.4. Guess your problem is with typemapping. Axis 1.1 puts typemapping as 1.1 by default and in Axis 1.2, the default is 1.2, though the doc still stays 1.1.

Try giving --typeMappingVersion 1.1 to WSDL2Java and see if it helps.

Ashutosh


Thanks... I'll take a look at it, when I revisit the issue.

Henry
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic