ATAOnlineWS


Click here for a complete list of operations.

OrderCarnet

Test

To test the operation using the HTTP POST protocol, click the 'Invoke' button.
Parameter Value
username:
password:
reference:
lastName:
firstName:
phone:
email:
repName:
repFirstName:
repAddress:
repZIP:
repCity:
feuilletsExportation:
feuilletsImportation:
feuilletsReExportation:
feuilletsReImportation:
feuilletsTransit:
utilisation:
expedition:
articles:
itineraires:
type:
demanderFirstname:
demanderLastname:
demanderPhone:
demanderEmail:

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /ATAOnlineWS.asmx HTTP/1.1
Host: www.ataswiss.ch
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.webexpert.ch/OrderCarnet"

<?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>
    <OrderCarnet xmlns="http://www.webexpert.ch/">
      <username>string</username>
      <password>string</password>
      <reference>string</reference>
      <lastName>string</lastName>
      <firstName>string</firstName>
      <phone>string</phone>
      <email>string</email>
      <repName>string</repName>
      <repFirstName>string</repFirstName>
      <repAddress>string</repAddress>
      <repZIP>string</repZIP>
      <repCity>string</repCity>
      <feuilletsExportation>string</feuilletsExportation>
      <feuilletsImportation>string</feuilletsImportation>
      <feuilletsReExportation>string</feuilletsReExportation>
      <feuilletsReImportation>string</feuilletsReImportation>
      <feuilletsTransit>string</feuilletsTransit>
      <utilisation>string</utilisation>
      <expedition>string</expedition>
      <articles>string</articles>
      <itineraires>string</itineraires>
      <type>string</type>
      <demanderFirstname>string</demanderFirstname>
      <demanderLastname>string</demanderLastname>
      <demanderPhone>string</demanderPhone>
      <demanderEmail>string</demanderEmail>
    </OrderCarnet>
  </soap:Body>
</soap:Envelope>
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>
    <OrderCarnetResponse xmlns="http://www.webexpert.ch/">
      <OrderCarnetResult>int</OrderCarnetResult>
    </OrderCarnetResponse>
  </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.

POST /ATAOnlineWS.asmx HTTP/1.1
Host: www.ataswiss.ch
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>
    <OrderCarnet xmlns="http://www.webexpert.ch/">
      <username>string</username>
      <password>string</password>
      <reference>string</reference>
      <lastName>string</lastName>
      <firstName>string</firstName>
      <phone>string</phone>
      <email>string</email>
      <repName>string</repName>
      <repFirstName>string</repFirstName>
      <repAddress>string</repAddress>
      <repZIP>string</repZIP>
      <repCity>string</repCity>
      <feuilletsExportation>string</feuilletsExportation>
      <feuilletsImportation>string</feuilletsImportation>
      <feuilletsReExportation>string</feuilletsReExportation>
      <feuilletsReImportation>string</feuilletsReImportation>
      <feuilletsTransit>string</feuilletsTransit>
      <utilisation>string</utilisation>
      <expedition>string</expedition>
      <articles>string</articles>
      <itineraires>string</itineraires>
      <type>string</type>
      <demanderFirstname>string</demanderFirstname>
      <demanderLastname>string</demanderLastname>
      <demanderPhone>string</demanderPhone>
      <demanderEmail>string</demanderEmail>
    </OrderCarnet>
  </soap12:Body>
</soap12:Envelope>
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>
    <OrderCarnetResponse xmlns="http://www.webexpert.ch/">
      <OrderCarnetResult>int</OrderCarnetResult>
    </OrderCarnetResponse>
  </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.

GET /ATAOnlineWS.asmx/OrderCarnet?username=string&password=string&reference=string&lastName=string&firstName=string&phone=string&email=string&repName=string&repFirstName=string&repAddress=string&repZIP=string&repCity=string&feuilletsExportation=string&feuilletsImportation=string&feuilletsReExportation=string&feuilletsReImportation=string&feuilletsTransit=string&utilisation=string&expedition=string&articles=string&itineraires=string&type=string&demanderFirstname=string&demanderLastname=string&demanderPhone=string&demanderEmail=string HTTP/1.1
Host: www.ataswiss.ch
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<int xmlns="http://www.webexpert.ch/">int</int>

HTTP POST

The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.

POST /ATAOnlineWS.asmx/OrderCarnet HTTP/1.1
Host: www.ataswiss.ch
Content-Type: application/x-www-form-urlencoded
Content-Length: length

username=string&password=string&reference=string&lastName=string&firstName=string&phone=string&email=string&repName=string&repFirstName=string&repAddress=string&repZIP=string&repCity=string&feuilletsExportation=string&feuilletsImportation=string&feuilletsReExportation=string&feuilletsReImportation=string&feuilletsTransit=string&utilisation=string&expedition=string&articles=string&itineraires=string&type=string&demanderFirstname=string&demanderLastname=string&demanderPhone=string&demanderEmail=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<int xmlns="http://www.webexpert.ch/">int</int>