QAndRetrieveException
The GetVersion method allows developers to determine the version of Flight Information eBL they are using. It also allows developers to determine whether the link to the CRSs is active. If the version of Flight Information eBL is returned, then the link is active.
The following sample illustrates how to use the GetVersion method using SOAP, HTTP Get, and HTTP Post.
SOAP
The following is a sample SOAP request and response. The placeholders shown need to be replaced with actual values.
Request
|
POST /XmlSelect/FlightInformation.asmx HTTP/1.1 Host: testws.galileo.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://webservices.galileo.com/FlightInformation/GetVersion"
<?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: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: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 /XmlSelect/FlightInformation.asmx/GetVersion? HTTP/1.1 Host: testws.galileo.com |
Response
|
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <string xmlns="http://webservices.galileo.com/FlightInformation">string</string> |
HTTP Post
The following is a sample HTTP Post request and response. The placeholders shown need to be replaced with actual values.
Request
|
POST /XmlSelect/FlightInformation.asmx/GetVersion HTTP/1.1 Host: testws.galileo.com Content-Type: application/x-www-form-urlencoded Content-Length: length |
Response
|
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <string xmlns="http://webservices.galileo.com/FlightInformation">string</string> |