This method sets the reservation of order.
Input parameter is an array of xsd:nonNegativeInteger, which contains order numbers and type of requests. If you use type='99' the order will be rejected. Don't use type for order confirmation.
Output is an xsd:byte, containing count of changed orders.
Method returns SOAP fault (according to SOAP Version 1.2, section 2.3 Fault Scenarios) on failure or when no data found for client request. Database error may be returned with specific error prefix, when database is not ready or something unwanted happens.
Code | Actor | String | Detail |
---|---|---|---|
1 | CLIENT | Malformed request. | request |
2 | CLIENT | Empty request. | timestamp |
10 | CLIENT | Malformed request, order not found. | order number |
20 | CLIENT | Malformed request, order not blocked. | order number |
ORA-[0-9]{1-5} | DATABASE | Database subsystem error. | database error message |
POST /index.php HTTP/1.0 | |
---|---|
User-Agent: | ClTest/1.0.0 (0.99) |
Host: | dev.techdata.cz |
Content-Type: | text/xml; charset=UTF-8 |
SOAPAction: | "http://xchgdemo.techdata.cz/index.php/setReservation" |
Content-Length: | 742 |
HTTP/1.1 200 OK | |
---|---|
Date: | Thu, 26 Aug 2004 13:10:05 GMT |
Server: | Apache |
X-SOAP-Server: | NuSOAP/0.6.8 (1.76) |
Content-Length: | 568 |
Connection: | close |
Content-Type: | text/xml; charset=UTF-8 |
SOAP fault is returned in ISO-8859-1 encoding, except of server header UTF-8 charset declaration.