Search Results

Usage

This section includes examples of how to use the SOAP Connector. All examples have an endpoint key of 794k2psw642cf.

Examples

Request Headers Request Payload Pre-Input Config Response Headers Cache TTL Response Payload Comments
Content-Type: application/xml
<?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>
<GetQuotation>
<QuotationsName>MiscroSoft</QuotationsName>
</GetQuotation>
</soap:Body>
</soap:Envelope>
- Content-Type: application/json In pre-input

cache_ttl : 5

{"iata_number": "12345678"}

Caching: Yes

If the second request comes within 5 minutes of the same endpoint with the same request payload, the response is retrieved from the cache.

Content-Type: application/xml
<?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>
<GetQuotation>
<QuotationsName>MiscroSoft</QuotationsName>
</GetQuotation>
</soap:Body>
</soap:Envelope>
Content-Type: application/zip Zip file attached in the response.

Caching: No

Caching will not be performed for binary responses.

Content-Type: application/json
{"iata_number": "12345678"}
- Content-Type : application/xml -
<?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>
<GetQuotation>
<QuotationsName>MiscroSoft</QuotationsName>
</GetQuotation>
</soap:Body>
</soap:Envelope>

Caching: Yes

Caching is only performed for the SOAP request.

Content-Type: application/xml
<?xml version=\"1.0\" encoding=\"UTF-8\"?><availabilityRQ 
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
- Content-Type : application/xml
<?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>
<GetQuotation>
<QuotationsName>MiscroSoft</QuotationsName>
</GetQuotation>
</soap:Body>
</soap:Envelope>

Caching: No

Caching is only performed for the SOAP request.

Content-Type: application/soap+xml
<?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>
<GetQuotation>
<QuotationsName>MiscroSoft</QuotationsName>
</GetQuotation>
</soap:Body>
</soap:Envelope>
headers:{"Content-Type"} Content-Type: application/json In pre-input

cache_ttl : 5

{"iata_number": "12345678"}

Caching: Yes

If the second request comes within 10 minutes on same endpoint with same request payload and same Content-Type, then response will be fetched from cache.

Content-Type: text/xml
<?xml version=\"1.0\" encoding=\"UTF-8\"?><availabilityRQ 
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
- Content-Type: application/json
{"iata_number": "12345678"}

Caching: Yes

400 Bad Request will be thrown as request payload contains SOAP message.

-
<?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>
<GetQuotation>
<QuotationsName>MiscroSoft</QuotationsName>
</GetQuotation>
</soap:Body>
</soap:Envelope>
- Content-Type: application/json
{"iata_number": "12345678"}

Caching: No

Caching is not performed as the request's Content-Type is not defined.

Content-Type: application/xml
<?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>
<GetQuotation>
<QuotationsName>MiscroSoft</QuotationsName>
</GetQuotation>
</soap:Body>
</soap:Envelope>
- -
{"iata_number": "12345678"}

Caching: No

Caching is not performed as the request's Content-Type is not defined.

Content-Type: application/xml - - Content-Type: application/json
{"iata_number": "12345678"}

Caching: No

Caching is not performed as the request's payload is empty.