function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
DorDor 

partner.wsdl to java using axis2 wsdl2java - help is needed

Hi,
 
How do i generate java files from the partner.wsdl using the axis2 wsdl2java?
 
Can you give me the full dos command for it, suppose my wsdl is located on c:\salesforce.
 
I am using: Myeclipse 6.5, Jboss 4.2.3, Java 1.5
 
Thanks in advance to you all,
  Dor


Message Edited by Dor on 11-19-2008 08:26 AM
bdr_09bdr_09
Hi,

          You can convert WSDL file to Java files by using axis-bin-1_4 and command is

>java org.apache.axis.wsdl.WSDL2Java -a ...'.wsdl or .xml file location ' -o ..'out put dir location'

But before running this command you have to setup the class path for the following jar files.

axis.jar,commons-logging-1.0.4.jar,commons-discovery-0.2.jar,jaxrpc.jar,wsdl4j-1.5.1.jar,axis-ant.jar,log4j-1.2.8.jar,saaj.jar,mail.jar


Thanks,
--bdr_09
 
ChellappaChellappa

Hi ,

 

I am able to do it using Axis 1.4 .

But what about Axis2 1.4.

 

I am using Eclipse Run Configurations where we "enterprise.wsdl -v -o src -O -1"

The same command doesnt work with Axis2 .

 

Any pointers to the Eclipse Run Configurations would be appreciated.

Thanks,

Chellappa

praveen908praveen908
How do i generate java files from the partner.wsdl using the axis2 wsdl2java?
 
Can you give me the full dos command for it, suppose my wsdl is located on c:\salesforce.
 
I am using:Eclipse SDK 3.7.0, jdk-6-windows-i586
 
Thanks in advance to you all,



sdetweilsdetweil

If u have the WTP support installed in your eclipse instance, then it is new->web service-> bottom up (from wsdl), go.. it runs wsdl2java under the covers, and compiles the code too.

 

here is a batch file I wrote to invoke wsdl2java manually

 

set p=    location of the jar files listed below
set cp=%p%\lib\axis.jar;%p%\lib\axis-ant.jar;%p%\lib\axis-schema.jar;%p%\lib\commons-discovery-0.4.jar;%p%\lib\commons-logging-1.1.1.jar;%p%\lib\jaxrpc.jar;%p%\lib\log4j-1.2.15.jar;%p%\lib\saaj.jar;%p%\lib\wsdl4j-1.5.2.jar;%p%\mail.jar;%p%\activation.jar;%p%\lib\wsdl4j-1.5.1.jar;

java -cp %cp% org.apache.axis.wsdl.WSDL2Java -O 60 -a ./%1