• Post Reply Bookmark Topic Watch Topic
  • New Topic

WSDL2JAVA not generating all the classes with Axis 1.4

 
kalpana gali
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are trying to move to Java 1.5, as a result I upgraded the Axis to version 1.4. But noticed the axis 1.4 does not generate all the classes from the WSDL. Has anyone been able to resolve the issue? Thanks in advance.
 
kalpana gali
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this a bug in Axis 1.4 or does the wsdl need to be modified?
 
Pradeep Chaubey
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I was also facing the same issue... But I tried WSDL2Java tool and it generated the required classes.... I did like this

C:\>"C:\Program Files\Java\jdk1.5.0\bin\java" -classpath %CLASSPATH% org.apache.axis.wsdl.WSDL2Java -v -o -s d:\generate C:\axis\PQSSProvisioning.wsdl

Hope it will help you...
 
Pradeep Chaubey
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I kept this command in a batch file and ran the batch file from cmd...prompt
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
kalpana gali wrote:We are trying to move to Java 1.5, as a result I upgraded the Axis to version 1.4.

While there may be other reasons to upgrade Axis (the latest version of which is 1.5, by the way, not 1.4), upgrading the JRE version is not one of them. Java's backwards compatibility should ensure that newer JREs run older Axis versions just fine.
 
kalpana gali
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Pradeep, I will try it this way.

Ulf-- when we upgrade to java 1.5 it gives a compile error with enum's. In axis 1.2 there is a package org.apache.axis.enum which needs to be changed.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!