Authentication & workflow
This document describes how to use APIs when accessing CYBERESA Web Services.
It explains the level of security implemented in order to use the APIs.
This document describes also each API, its structure for request and response, which parameters are mandatory and optional and error management.
Authentication & Security
Check Credentials : Login and password sent by user through HTTPS requests
Check if host IP is allowed to access to API
Interface URL
Soap 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
Request
POST /cr.ws/Flight.asmx HTTP/1.1
Host: staging.cyberesa.net
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://localhost/cr.ws/WebServiceRQ"
<?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>
<WebServiceRQ xmlns="http://localhost/cr.ws">
<strRQ>string</strRQ>
</WebServiceRQ>
</soap:Body>
</soap:Envelope>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>
<WebServiceRQResponse xmlns="http://localhost/cr.ws">
<WebServiceRQResult>xml</WebServiceRQResult>
</WebServiceRQResponse>
</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.
Request
POST /cr.ws/Flight.asmx HTTP/1.1
Host: staging.cyberesa.net
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<WebServiceRQ xmlns="http://localhost/cr.ws">
<strRQ>string</strRQ>
</WebServiceRQ>
</soap12:Body>
</soap12:Envelope>Response
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<WebServiceRQResponse xmlns="http://localhost/cr.ws">
<WebServiceRQResult>xml</WebServiceRQResult>
</WebServiceRQResponse>
</soap12:Body>
</soap12:Envelope>Http get
The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.
Request
GET /cr.ws/Flight.asmx/WebServiceRQ?strRQ=string HTTP/1.1
Host: staging.cyberesa.netResponse
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0"?>
xmlHttp post
The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.
Request
POST /cr.ws/Flight.asmx/WebServiceRQ HTTP/1.1
Host: staging.cyberesa.net
Content-Type: application/x-www-form-urlencoded
Content-Length: length
strRQ=stringResponse
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0"?>
xmlWorkflow
