<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="https://soap.cap.co.uk/smr" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="https://soap.cap.co.uk/smr" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
  <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">CAP SMR Webservice.</wsdl:documentation>
  <wsdl:types>
    <s:schema elementFormDefault="qualified" targetNamespace="https://soap.cap.co.uk/smr">
      <s:element name="GetSmrValuation">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="1" maxOccurs="1" name="subscriberId" type="s:int" />
            <s:element minOccurs="0" maxOccurs="1" name="password" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="database" type="s:string" />
            <s:element minOccurs="1" maxOccurs="1" name="capid" type="s:int" />
            <s:element minOccurs="0" maxOccurs="1" name="capCode" type="s:string" />
            <s:element minOccurs="1" maxOccurs="1" name="datasetDate" type="s:dateTime" />
            <s:element minOccurs="1" maxOccurs="1" name="justCurrent" type="s:boolean" />
            <s:element minOccurs="1" maxOccurs="1" name="monthsToValuation" type="s:int" />
            <s:element minOccurs="1" maxOccurs="1" name="mileage" type="s:int" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="GetSmrValuationResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="GetSmrValuationResult" type="tns:CAPDataSetResult" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:complexType name="CAPDataSetResult">
        <s:sequence>
          <s:element minOccurs="1" maxOccurs="1" name="Success" type="s:boolean" />
          <s:element minOccurs="0" maxOccurs="1" name="FailMessage" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="Returned_DataSet">
            <s:complexType>
              <s:sequence>
                <s:element ref="s:schema" />
                <s:any />
              </s:sequence>
            </s:complexType>
          </s:element>
        </s:sequence>
      </s:complexType>
      <s:element name="CAPDataSetResult" nillable="true" type="tns:CAPDataSetResult" />
    </s:schema>
  </wsdl:types>
  <wsdl:message name="GetSmrValuationSoapIn">
    <wsdl:part name="parameters" element="tns:GetSmrValuation" />
  </wsdl:message>
  <wsdl:message name="GetSmrValuationSoapOut">
    <wsdl:part name="parameters" element="tns:GetSmrValuationResponse" />
  </wsdl:message>
  <wsdl:message name="GetSmrValuationHttpGetIn">
    <wsdl:part name="subscriberId" type="s:string" />
    <wsdl:part name="password" type="s:string" />
    <wsdl:part name="database" type="s:string" />
    <wsdl:part name="capid" type="s:string" />
    <wsdl:part name="capCode" type="s:string" />
    <wsdl:part name="datasetDate" type="s:string" />
    <wsdl:part name="justCurrent" type="s:string" />
    <wsdl:part name="monthsToValuation" type="s:string" />
    <wsdl:part name="mileage" type="s:string" />
  </wsdl:message>
  <wsdl:message name="GetSmrValuationHttpGetOut">
    <wsdl:part name="Body" element="tns:CAPDataSetResult" />
  </wsdl:message>
  <wsdl:message name="GetSmrValuationHttpPostIn">
    <wsdl:part name="subscriberId" type="s:string" />
    <wsdl:part name="password" type="s:string" />
    <wsdl:part name="database" type="s:string" />
    <wsdl:part name="capid" type="s:string" />
    <wsdl:part name="capCode" type="s:string" />
    <wsdl:part name="datasetDate" type="s:string" />
    <wsdl:part name="justCurrent" type="s:string" />
    <wsdl:part name="monthsToValuation" type="s:string" />
    <wsdl:part name="mileage" type="s:string" />
  </wsdl:message>
  <wsdl:message name="GetSmrValuationHttpPostOut">
    <wsdl:part name="Body" element="tns:CAPDataSetResult" />
  </wsdl:message>
  <wsdl:portType name="CapSmrSoap">
    <wsdl:operation name="GetSmrValuation">
      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Returns a SMR Valuation for a given CAPID or CAPCode.&lt;br&gt;Only current vehicles for the dataset will return a SMR valuation.&lt;br&gt;If using the CAPCode then CAPId should be set to 0.&lt;br&gt;Date Format: yyyy/mm/dd.&lt;br&gt;If JustCurrent is true, the current Future Values PPM will be returned - otherwise they will be taken from the given dataset date.&lt;br&gt;Dataset Date: relates to the monthly edition, e.g. 2008/10/01 will use October 2008's data.  This parameter needs to be populated even if JustCurrent is true.&lt;br&gt;All dates passed should be the first of the month e.g. 2004/12/01.&lt;br&gt;MonthsToValuation denotes how many months in the future from the PPMDate the valuation is for.  This can be between 12 and 60.&lt;br&gt;Mleages are entered in full, e.g. 40850.&lt;br&gt;The results are cached for 30 minutes.</wsdl:documentation>
      <wsdl:input message="tns:GetSmrValuationSoapIn" />
      <wsdl:output message="tns:GetSmrValuationSoapOut" />
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:portType name="CapSmrHttpGet">
    <wsdl:operation name="GetSmrValuation">
      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Returns a SMR Valuation for a given CAPID or CAPCode.&lt;br&gt;Only current vehicles for the dataset will return a SMR valuation.&lt;br&gt;If using the CAPCode then CAPId should be set to 0.&lt;br&gt;Date Format: yyyy/mm/dd.&lt;br&gt;If JustCurrent is true, the current Future Values PPM will be returned - otherwise they will be taken from the given dataset date.&lt;br&gt;Dataset Date: relates to the monthly edition, e.g. 2008/10/01 will use October 2008's data.  This parameter needs to be populated even if JustCurrent is true.&lt;br&gt;All dates passed should be the first of the month e.g. 2004/12/01.&lt;br&gt;MonthsToValuation denotes how many months in the future from the PPMDate the valuation is for.  This can be between 12 and 60.&lt;br&gt;Mleages are entered in full, e.g. 40850.&lt;br&gt;The results are cached for 30 minutes.</wsdl:documentation>
      <wsdl:input message="tns:GetSmrValuationHttpGetIn" />
      <wsdl:output message="tns:GetSmrValuationHttpGetOut" />
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:portType name="CapSmrHttpPost">
    <wsdl:operation name="GetSmrValuation">
      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Returns a SMR Valuation for a given CAPID or CAPCode.&lt;br&gt;Only current vehicles for the dataset will return a SMR valuation.&lt;br&gt;If using the CAPCode then CAPId should be set to 0.&lt;br&gt;Date Format: yyyy/mm/dd.&lt;br&gt;If JustCurrent is true, the current Future Values PPM will be returned - otherwise they will be taken from the given dataset date.&lt;br&gt;Dataset Date: relates to the monthly edition, e.g. 2008/10/01 will use October 2008's data.  This parameter needs to be populated even if JustCurrent is true.&lt;br&gt;All dates passed should be the first of the month e.g. 2004/12/01.&lt;br&gt;MonthsToValuation denotes how many months in the future from the PPMDate the valuation is for.  This can be between 12 and 60.&lt;br&gt;Mleages are entered in full, e.g. 40850.&lt;br&gt;The results are cached for 30 minutes.</wsdl:documentation>
      <wsdl:input message="tns:GetSmrValuationHttpPostIn" />
      <wsdl:output message="tns:GetSmrValuationHttpPostOut" />
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="CapSmrSoap" type="tns:CapSmrSoap">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="GetSmrValuation">
      <soap:operation soapAction="https://soap.cap.co.uk/smr/GetSmrValuation" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:binding name="CapSmrSoap12" type="tns:CapSmrSoap">
    <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="GetSmrValuation">
      <soap12:operation soapAction="https://soap.cap.co.uk/smr/GetSmrValuation" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:binding name="CapSmrHttpGet" type="tns:CapSmrHttpGet">
    <http:binding verb="GET" />
    <wsdl:operation name="GetSmrValuation">
      <http:operation location="/GetSmrValuation" />
      <wsdl:input>
        <http:urlEncoded />
      </wsdl:input>
      <wsdl:output>
        <mime:mimeXml part="Body" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:binding name="CapSmrHttpPost" type="tns:CapSmrHttpPost">
    <http:binding verb="POST" />
    <wsdl:operation name="GetSmrValuation">
      <http:operation location="/GetSmrValuation" />
      <wsdl:input>
        <mime:content type="application/x-www-form-urlencoded" />
      </wsdl:input>
      <wsdl:output>
        <mime:mimeXml part="Body" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="CapSmr">
    <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">CAP SMR Webservice.</wsdl:documentation>
    <wsdl:port name="CapSmrSoap" binding="tns:CapSmrSoap">
      <soap:address location="http://soap.cap.co.uk/Smr/capsmr.asmx" />
    </wsdl:port>
    <wsdl:port name="CapSmrSoap12" binding="tns:CapSmrSoap12">
      <soap12:address location="http://soap.cap.co.uk/Smr/capsmr.asmx" />
    </wsdl:port>
    <wsdl:port name="CapSmrHttpGet" binding="tns:CapSmrHttpGet">
      <http:address location="http://soap.cap.co.uk/Smr/capsmr.asmx" />
    </wsdl:port>
    <wsdl:port name="CapSmrHttpPost" binding="tns:CapSmrHttpPost">
      <http:address location="http://soap.cap.co.uk/Smr/capsmr.asmx" />
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>