Friday, May 10, 2013

WSDL to JAVA Conversion using Soap UI



WSDL to JAVA Conversion using Soap UI
 
1)      Download Apache CXF Libraries using the following URL and keep it some where on the disk.

2)      Open Soap UI > Go to “Preferences”



3)      Choose “Tools” & configure “bin” path of apache cxf, then click on “Ok”.


4)      Open Soap UI > Go to “Tools” > Select “Apache CXF”.

5)      Configure the WSDL URL, Output Directory, Package, starting points….etc that needs to be converted to JAVA.

WSDL: URL of the WSDL file.
Output Directory: Path of the directory where the generated java files stores.
Note: Select starting point code as required.

6)      Click on “Generate”.
Generates java files related to all implementations.

7)      Check the generated files in specified Output Directory.

NOTE: Please make sure the JAVA_HOME is set to JDK Root Directory. If you are facing  problems with JAVA_HOME path,

Open wsdl2java.bat in “bin”

Add the following statements

Set "CXF_HOME=C:\somepath\apache-cxf-2.5.2"
Set "JAVA_HOME=C:\somepath \jdk1.6.0_26"


                 
-- THE END --

No comments:

Post a Comment