I’m trying to create an order with XML-RPC, this is the body of my request:
<?xml version='1.0' encoding='UTF-8'?>
<methodCall>
<methodName>OrderService.placeOrder</methodName>
<params>
<param>
<value><string>somekey</string></value>
</param>
<param>
<value><int>1</int></value>
</param>
<param>
<value><int>0</int></value>
</param>
<param>
<value><int>0</int></value>
</param>
<param>
<value><array>
<data>
<value><int>2</int></value>
</data>
</array></value>
</param>
<param>
<value><array>
<data>
<value><int>0</int></value>
</data>
</array></value>
</param>
<param>
<value><boolean>0</boolean></value>
</param>
<param>
<value><array>
<data>
<value><string></string></value>
</data>
</array></value>
</param>
<param>
<value><int>0</int></value>
</param>
<param>
<value><int>0</int></value>
</param>
</params>
</methodCall>
I’m getting this response:
<methodResponse>
<fault>
<value>
<struct>
<member>
<name>faultCode</name>
<value>
<i4>12</i4>
</value>
</member>
<member>
<name>faultString</name>
<value>id must be valid</value>
</member>
</struct>
</value>
</fault>
</methodResponse>
What I’m doing wrong?