Technical Interface
XML Message Format
Each message must:
▪ be well-formed XML
▪ begin with an XML declaration that specifies
▪ the XML version (1.0)
▪ the encoding (optional, iso-8859-1 and utf-8 are supported)
The message format is loosely based on XML-RPC. It supports named parameters with types that are not
defined globally but rather on a per method basis. Naming conventions also differ from XML-PRC.
Request
The root element of the method request is
the first level child element
XML request example:
<?xml version="1.0"?>
<methodcall>
<name>add_task</name>
<params>
<taskgroup_id>123004</taskgroup_id>
<tasks>
<task>
<task_id>420233</task_id>
<bin_id>23255</bin_id>
</task>
</tasks>
</params>
</methodcall>Response
The root element of the returned XML document is always
If the method call is successful, a child element named
data. If no data is returned,
XML response example:
<?xml version="1.0"?>
<response>
<params/>
</response>If the method call is not successful a child element named
child element named <!code!> that contains the numeric error code.
XML fault response example:
<?xml version="1.0"?>
<response>
<fault>
<code>1009</code>
</fault>
</response>Using the AutoStore Interface
Messages are sent as HTTP POST requests to one of the following URLs:
| Interface | URL |
|---|---|
| Task Interface | http://<server>:44000/api/v2/task |
| Bin Interface | http://<server>:44000/api/v2/bin |
WARNINGNever use Task Interface and Bin Interface in the same implementation!
Updated 2 months ago