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.
How to Use
- Clone this repository.
- In the directory, use the command
mvn install package.
- After it has finished, use the command
cd targetto 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
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]
WSDL2Apex also uses the following libraries/frameworks in their binary form, which have their own respective licenses: