WSDL2Apex takes a WSDL file and generates the Apex stubs for it. This is used in, and is part of the Force.com IDE plug-in. However, since it can be used a standalone tool, we have factored it out into its own project.
- Clone this repository.
- In the directory, use the command
mvn install package
. - After it has finished, use the command
cd target
to switch to the right directory - Execute the jar:
java -jar WSDL2Apex-1.0.jar [path-to-wsdl] [path-to-new-file] [want asynchronous class? (yes|no)]
- To clean, run
mvn clean
To run the test, use the command mvn test
in the base directory
WSDL2Apex code is now separated into the parsing part and the generated part. If you are using the parsing and generating functions in the main class, be sure to use the parse method first and then the generate method.
Parse method takes [path-to-wsdl]
Generate method takes in [names-of-generated-classes] [want asynchronous class? (yes|no) ] [(optional) path-to-new-file]
Eclipse Public License (EPL) v1.0
WSDL2Apex also uses the following libraries/frameworks in their binary form, which have their own respective licenses:
- Antlr (BSD License)
- Google Guava (Apache License)
- Force-WSC (BSD License)