SMART cash web-adgang

Error in site JavaScript
Web Service Documentation
Service: RESERVATION
Method: AddBookingDiner
Add table booking
Parameters
string: brugernavn
Parameter is Required
string: kodeord
Parameter is Required
int: zone
Parameter is Required
string: reservationdate
Parameter is Required
string: reservationtime
Parameter is Required
int: customers
Parameter is Required
int: mobilenr
Parameter is Required
string: email
Parameter is Optional
string: guestname
Parameter is Required
string: comment
Parameter is Optional
int: newsletter
Parameter is Optional
Possible Return Data

List: ServiceErrors
ErrorNumber (int)
ErrorPosition (string)
ErrorRecordID (string)
ErrorDescription (string)
ErrorRecomendation (string)
Field: guid
Field: tableno
Field: fromdato
Field: fromtime
Field: todato
Field: totime
Field: reservationnr
SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

Example Request

POST /RESERVATION HTTP/1.1
Host: sharkspoolhall.dk
Accept: application/xml
Content-Type: text/xml
Content-Length: length
SOAPAction: http://sharkspoolhall.dk/AddBookingDiner

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <AddBookingDiner xmlns="">
      <brugernavn>value</brugernavn>
      <kodeord>value</kodeord>
      <zone>value</zone>
      <reservationdate>value</reservationdate>
      <reservationtime>value</reservationtime>
      <customers>value</customers>
      <mobilenr>value</mobilenr>
      <email>value</email>
      <guestname>value</guestname>
      <comment>value</comment>
      <newsletter>value</newsletter>
    </AddBookingDiner>
  </soap:Body>
</soap:Envelope>

Example Response

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <AddBookingDiner_response xmlns="">
      <guid>value</guid>
      <tableno>value</tableno>
      <fromdato>value</fromdato>
      <fromtime>value</fromtime>
      <todato>value</todato>
      <totime>value</totime>
      <reservationnr>value</reservationnr>
    </AddBookingDiner_response>
  </soap:Body>
</soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

Example Request

POST /RESERVATION HTTP/1.1
Host: sharkspoolhall.dk
Accept: application/xml
Content-Type: application/soap+xml
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
  <soap:Body>
    <AddBookingDiner xmlns="">
      <brugernavn>value</brugernavn>
      <kodeord>value</kodeord>
      <zone>value</zone>
      <reservationdate>value</reservationdate>
      <reservationtime>value</reservationtime>
      <customers>value</customers>
      <mobilenr>value</mobilenr>
      <email>value</email>
      <guestname>value</guestname>
      <comment>value</comment>
      <newsletter>value</newsletter>
    </AddBookingDiner>
  </soap:Body>
</soap:Envelope>

Example Response

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <AddBookingDiner_response xmlns="">
      <guid>value</guid>
      <tableno>value</tableno>
      <fromdato>value</fromdato>
      <fromtime>value</fromtime>
      <todato>value</todato>
      <totime>value</totime>
      <reservationnr>value</reservationnr>
    </AddBookingDiner_response>
  </soap:Body>
</soap:Envelope>
HTTP POST (XML Response)
The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.

Example Request

POST /AddBookingDiner HTTP/1.1
Host: sharkspoolhall.dk
Accept: application/xml
Content-Type: application/x-www-form-urlencoded
Content-Length: length

brugernavn=value&kodeord=value&zone=value&reservationdate=value&reservationtime=value&customers=value&mobilenr=value&email=value&guestname=value&comment=value&newsletter=value

Example Response

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<AddBookingDiner_response xmlns="">
  <guid>value</guid>
  <tableno>value</tableno>
  <fromdato>value</fromdato>
  <fromtime>value</fromtime>
  <todato>value</todato>
  <totime>value</totime>
  <reservationnr>value</reservationnr>
</AddBookingDiner_response>
HTTP GET (XML Response)
The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.

Example Request

GET /AddBookingDiner?brugernavn=value&kodeord=value&zone=value&reservationdate=value&reservationtime=value&customers=value&mobilenr=value&email=value&guestname=value&comment=value&newsletter=value HTTP/1.1
Host: sharkspoolhall.dk
Accept: application/xml

Example Response

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<AddBookingDiner_response xmlns="">
  <guid>value</guid>
  <tableno>value</tableno>
  <fromdato>value</fromdato>
  <fromtime>value</fromtime>
  <todato>value</todato>
  <totime>value</totime>
  <reservationnr>value</reservationnr>
</AddBookingDiner_response>
REST GET (XML Response)
The following is a sample REST request and response. The placeholders shown need to be replaced with actual values.

Example Request

GET /RESERVATION/AddBookingDiner/brugernavnvalue?kodeord=value&zone=value&reservationdate=value&reservationtime=value&customers=value&mobilenr=value&guestname=value HTTP/1.1
Host: sharkspoolhall.dk
Accept: application/xml

Example Response

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<AddBookingDiner_response xmlns="">
  <guid>value</guid>
  <tableno>value</tableno>
  <fromdato>value</fromdato>
  <fromtime>value</fromtime>
  <todato>value</todato>
  <totime>value</totime>
  <reservationnr>value</reservationnr>
</AddBookingDiner_response>
HTTP POST (JSON)
The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.

Example Request

POST /AddBookingDiner HTTP/1.1
Host: sharkspoolhall.dk
Accept: application/json
Content-Type: application/json
Content-Length: length

{
  "brugernavn" : "value",
  "kodeord" : "value",
  "zone" : "value",
  "reservationdate" : "value",
  "reservationtime" : "value",
  "customers" : "value",
  "mobilenr" : "value",
  "email" : "value",
  "guestname" : "value",
  "comment" : "value",
  "newsletter" : "value"
}

Example Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: length

{
  "AddBookingDiner_response" : {
    "guid" : "value",
    "tableno" : "value",
    "fromdato" : "value",
    "fromtime" : "value",
    "todato" : "value",
    "totime" : "value",
    "reservationnr" : "value"
  }
}
HTTP GET (JSON Response)
The following is a sample JSON GET request and response. The placeholders shown need to be replaced with actual values.

Example Request

GET /AddBookingDiner?brugernavn=value&kodeord=value&zone=value&reservationdate=value&reservationtime=value&customers=value&mobilenr=value&guestname=value HTTP/1.1
Host: sharkspoolhall.dk
Accept: application/json

Example Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: length

{
  "AddBookingDiner_response" : {
    "guid" : "value",
    "tableno" : "value",
    "fromdato" : "value",
    "fromtime" : "value",
    "todato" : "value",
    "totime" : "value",
    "reservationnr" : "value"
  }
}
REST GET (JSON Response)
The following is a sample REST request and response. The placeholders shown need to be replaced with actual values.

Example Request

GET /RESERVATION/AddBookingDiner/brugernavnvalue?kodeord=value&zone=value&reservationdate=value&reservationtime=value&customers=value&mobilenr=value&guestname=value HTTP/1.1
Host: sharkspoolhall.dk
Accept: application/json

Example Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: length

{
  "AddBookingDiner_response" : {
    "guid" : "value",
    "tableno" : "value",
    "fromdato" : "value",
    "fromtime" : "value",
    "todato" : "value",
    "totime" : "value",
    "reservationnr" : "value"
  }
}