Parallels H-Sphere XML API, written in Java, is designed to manage Parallels H-Sphere services from remote applications via SOAP. It uses the Apache Axis implementation of SOAP and runs under the Apache Tomcat engine.
Remote applications interact with CP services by means of XML-formatted requests transferred via HTTP (direct TCP connection can also be set up). Error messages are also processed in XML.
XML schema is based on the SOAP RPC convention: http://www.w3.org/TR/soap12/.
XML API provides the following mechanism of communication between remote applications and the Control Panel:
Therefore, though HTTP is used for data transfer, Parallels H-Sphere XML API services are not called from a Web browser!
Where To Get Parallels H-Sphere XML API
For Java, you may download Parallels H-Sphere XML API from psoft.net:
For other programming languages (for Java as well), you can use WSDL file to implement Parallels H-Sphere XML API services in this language. See how to generate WSDL via Axis.
Here you may find a sample Parallels H-Sphere signup form written in PHP 5 (which has an embedded SOAP client) using Parallels H-Sphere XML API: http://hsphere.parallels.com/HSdocumentation/xmls/xml-api/hs_xml_api_signup_example.tgz.
Services
Actions supported by XML API are grouped by services:
See the XML API services documentation generated by the Javadoc tool: http://hsphere.parallels.com/HSdocumentation/xmls/xml-api/.
Note: When generating AuthToken for reseller, in addition to defining reseller's accountID, login and password, set also login in the Role to "" (empty) and account id in the Role to "0".