Total Pageviews

2019/01/04

[Java] [Tool] How to generate Java code from WSDL via SoapUI?

Problem
How to generate Java code from WSDL via SoapUI?

How-To
Assume I have a WSDL file: http://localhost:8080/ws/eaWs.wsdl

Prerequisite
1. Download SoapUI from https://www.soapui.org/
2. Download Java and set JAVA_HOME

3. Download Apache CXF from https://cxf.apache.org/download.html and set CXF_HOME


Steps to generate Java code from WSDL via SoapUI 
1. File => New SOAP Project

2. Specify project name and WSDL


3. Right Click => Generate Code => Apache CXF


4. Click Tools to set Apache CXF path if you do not configure before



5. Specify Output Directory, Package

6. Specify encoding in Custom Args


7. Click Generate button





No comments: