Documentation::setReservation

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.

Fault codes

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
1CLIENTMalformed request.request
2CLIENTEmpty request.timestamp
10CLIENTMalformed request, order not found.order number
20CLIENTMalformed request, order not blocked.order number
ORA-[0-9]{1-5}DATABASEDatabase subsystem error.database error message

Example request

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

Example response

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

Known bugs

SOAP fault is returned in ISO-8859-1 encoding, except of server header UTF-8 charset declaration.