XML-RPC Format
The API is implemented as XML over HTTP (XML-RPC).
Send an XML Request and receives an XML response.
XML-RPC requests are specially formatted XML data posted to a URL. You can find
out more about XML-RPC at
http://www.xmlrpc.com/.
The XML-RPC Server Endpoint URL is:
http://service.feng-gui.com/xmlrpc/api.ashx
* You can try all the API methods via a web browser or use the command-line tool,
cURL.
For example:
curl -u name:pass -H 'Content-Type: application/xml' -d @request.xml
http://service.feng-gui.com/xmlrpc/api.ashx
Remarks
When using XML-RPC, the parameter order matters: there are no named parameters.
In SOAP, procedures take named parameters and order is irrelevant. In XML-RPC order
is relevant and parameters do not have names.
Request Format
To send a request (for example, to echo method), send a request like this:
<?xml version="1.0"?>
<methodCall>
<methodName>echo</methodName>
<params>
<param>
<value><string>test string</string></value>
</param>
</params>
</methodCall>
Response Format
A request call to the echo method returns this response:
<?xml version="1.0"?>
<methodResponse>
<params>
<param>
<value>
<string>test string</string>
</value>
</param>
</params>
</methodResponse>
Error Response Format
If an error occurs, the following response is returned:
<?xml version="1.0"?>
<methodResponse>
<fault>
<value>
<struct>
<member>
<name>faultCode</name>
<value><i4>[error-code]</i4></value>
</member>
<member>
<name>faultString</name>
<value>
<string>[error-message]</string>
</value>
</member>
</struct>
</value>
</fault>
</methodResponse>