Request List

#CMDAvailable at
1GetWaiterMessagesCS, ST
2WaiterMessageCS
3GetOrderListCS
4CreateOrderCS
5GetOrderMenuCS
6GetWaiterListCS
7GetRefDataCS
8LoginOnStationCS
9PayOrderCS
10PrintBillCS
11SaveOrderCS
12DelWaiterMessagesCS
13GetItemBlobCS
14GetDocByLayoutCS
15DeleteReceiptCS
  • CS — the cash server
  • ST — the cash station

You can get a list of requests supported in the interface using the CMD=GetFunctions universal command.

Download schemas for requests — the structure and possible arguments for each request.

CallRK7XMLRPC is the main function.
Parameters:

  • AddressName — address:port
  • Request — an XML ​​request
  • RequestSize — an XML ​​request size
  • ResultFile — the name of the file where the request results are written
  • ErrorBuf — the place where connection errors are written
  • ErrorBufSize — the size of the ErrorBuf.

CallRK7XMLRPCToStream is similar to the function above, but its result is written to the stream.
Parameters:

  • AddressName — address:port
  • Request — an XML ​​request
  • RequestSize — an XML ​​request size
  • ResultStream — IStream — the stream where the result is passed
  • ErrorBuf — the place where connection errors are written
  • ErrorBufSize — the size of the ErrorBuf.

The SetUseTempFileLimit function sets a file size limit if the result return time exceeds the threshold. The default value is 1000000 ms.

The GetDLLVersion function returns the version of the DLL.

The SetCryptKey function sets the encryption key. It can be different for different cash servers. It is specified in the properties of the XML interface.

Example of Requesting File from Server

You can use the GetItemBlob request to get some file in the base64 format stored inside the reference database but not imported into an external database.

The request in the example below will return the layout for the report with ID=1001 in the filename.fr3 format.

<?xml version="1.0" encoding="utf-8"?><RK7Query><RK7CMD CMD="GetItemBlob" RefName="OLAPReports" RefItemIdent="1001" RefBlobName="LAYOUT" UnpackedBlob="0"/></RK7Query>
  • No labels