carsv2


Click here for a complete list of operations.

models_get

Get available car models and smodels

Test

The test form is only available for requests from the local machine.

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 /cars/v2.asmx HTTP/1.1
Host: services.onderdelenlijn.nl
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "https://www.onderdelenlijn.nl/services/cars/v2.asmx/models_get"

<?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>
    <models_get xmlns="https://www.onderdelenlijn.nl/services/cars/v2.asmx">
      <credentials>
        <username>string</username>
        <password>string</password>
      </credentials>
      <parameters>
        <culture>nl or en or de or fr or es or pl</culture>
        <makename>string</makename>
        <supplierids>
          <int>int</int>
          <int>int</int>
        </supplierids>
        <state>
          <vehiclestate>damaged or salvaged or occasion</vehiclestate>
          <vehiclestate>damaged or salvaged or occasion</vehiclestate>
        </state>
        <showsmodels>boolean</showsmodels>
        <instock>boolean</instock>
      </parameters>
    </models_get>
  </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>
    <models_getResponse xmlns="https://www.onderdelenlijn.nl/services/cars/v2.asmx">
      <models_getResult>
        <response>
          <status>int</status>
          <messages>
            <message xsi:nil="true" />
            <message xsi:nil="true" />
          </messages>
          <milliseconds>int</milliseconds>
          <sessionid>string</sessionid>
        </response>
        <parameters>
          <culture>nl or en or de or fr or es or pl</culture>
          <makename>string</makename>
          <supplierids>
            <int>int</int>
            <int>int</int>
          </supplierids>
          <state>
            <vehiclestate>damaged or salvaged or occasion</vehiclestate>
            <vehiclestate>damaged or salvaged or occasion</vehiclestate>
          </state>
          <showsmodels>boolean</showsmodels>
          <instock>boolean</instock>
        </parameters>
        <result>
          <modelcount>int</modelcount>
          <itemcount>int</itemcount>
          <list>
            <model xsi:nil="true" />
            <model xsi:nil="true" />
          </list>
        </result>
      </models_getResult>
    </models_getResponse>
  </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 /cars/v2.asmx HTTP/1.1
Host: services.onderdelenlijn.nl
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>
    <models_get xmlns="https://www.onderdelenlijn.nl/services/cars/v2.asmx">
      <credentials>
        <username>string</username>
        <password>string</password>
      </credentials>
      <parameters>
        <culture>nl or en or de or fr or es or pl</culture>
        <makename>string</makename>
        <supplierids>
          <int>int</int>
          <int>int</int>
        </supplierids>
        <state>
          <vehiclestate>damaged or salvaged or occasion</vehiclestate>
          <vehiclestate>damaged or salvaged or occasion</vehiclestate>
        </state>
        <showsmodels>boolean</showsmodels>
        <instock>boolean</instock>
      </parameters>
    </models_get>
  </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>
    <models_getResponse xmlns="https://www.onderdelenlijn.nl/services/cars/v2.asmx">
      <models_getResult>
        <response>
          <status>int</status>
          <messages>
            <message xsi:nil="true" />
            <message xsi:nil="true" />
          </messages>
          <milliseconds>int</milliseconds>
          <sessionid>string</sessionid>
        </response>
        <parameters>
          <culture>nl or en or de or fr or es or pl</culture>
          <makename>string</makename>
          <supplierids>
            <int>int</int>
            <int>int</int>
          </supplierids>
          <state>
            <vehiclestate>damaged or salvaged or occasion</vehiclestate>
            <vehiclestate>damaged or salvaged or occasion</vehiclestate>
          </state>
          <showsmodels>boolean</showsmodels>
          <instock>boolean</instock>
        </parameters>
        <result>
          <modelcount>int</modelcount>
          <itemcount>int</itemcount>
          <list>
            <model xsi:nil="true" />
            <model xsi:nil="true" />
          </list>
        </result>
      </models_getResult>
    </models_getResponse>
  </soap12:Body>
</soap12:Envelope>