This project generates custom binding declarations for Plesk XML API schema files. The Plesk XML API schema files contains some conflicts and JAXB schema compilers generate some not so clear property names.
note: this project does not contain the Plesk XML API schema files so you need to download them from your plesk server or from Plesk XML-RPC API Schemes
Place the Plesk XML API schema files in a folder and run:
java -jar plesk-xml-api-generate-jaxbindings [folder]
For example:
java -jar plesk-xml-api-generate-jaxbindings C:\Plesk\schemas
The tool generates a xjb file per XML API Operator, agent_input and agent_output, which can be used with a JAXB schema compiler. For example with Eclipse Implementation of JAXB:
For agent_input (request):
xjc.bat -nv -b C:\Temp\plesk\1.6.9.1\agent_input.xsd.xjb -p plesk.xml.api.input C:\Temp\plesk\1.6.9.1\agent_input.xsd
For agent_output (response):
xjc.bat -nv -b C:\Temp\plesk\1.6.9.1\agent_output.xsd.xjb -p plesk.xml.api.output C:\Temp\plesk\1.6.9.1\agent_output.xsd
If you need helper classes, please have a look at the plesk-xml-api project.