Skip to content

A project to generate a JAX binding file for Plesk XML API schema files

Notifications You must be signed in to change notification settings

ben-eddy74/plesk-xml-api-jaxbinding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JAXB custom binding files generator for Plesk XML API

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

How to use

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.

About

A project to generate a JAX binding file for Plesk XML API schema files

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages