- This utility uses maven with CXF version 3.3.3 to generate the client lib
- This utility does not support the old (not widely supported) Rpc/encoded wsdls as those are old format.
- wsdl definition with
<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
tells us it is old fashioned wsdl - To handle the old wsdl with RPC encoding, use Java/RPC client or Axis1.x to generate client Java files.
- If you don't need to use the RPC/encoded part then you can comment this part and use the current utility.
- Make sure Java is installed and JAVA_HOME is setup.
- Make sure maven is installed and M2_HOME is setup
-
Put the WSDL file under src/main/resources directory
-
Update the pom.xml with WSDL details
-
Run the following command to generate the sources.
mvn generate-sources
-
If you see "BUILD SUCCESS" message then you can find the generated files to location defined in pom.xml
<sourceRoot></sourceRoot>
section