Upload Service


Click here for a complete list of operations.

Upload

Test

To test the operation using the HTTP POST protocol, click the 'Invoke' button.
Parameter Value
DealerCode:
LeadReference:
Title:
Firstname:
Lastname:
Email:
Address1:
Address2:
Address3:
City:
Postcode:
County:
Country:
Interest:
IRD:
BrochureRequest:
Mobile:
Home:
Work:
TradeIn:
TestRideRequest:
Spare:
ExternalSourceName:
PartExchangeVehicle:

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 /UploadService.asmx HTTP/1.1
Host: tools.contactonline.co.uk
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://contactonline.uk.com/UploadService/Upload"

<?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:Header>
    <Authentication xmlns="http://contactonline.uk.com/UploadService/">
      <Username>string</Username>
      <Password>string</Password>
    </Authentication>
  </soap:Header>
  <soap:Body>
    <Upload xmlns="http://contactonline.uk.com/UploadService/">
      <DealerCode>int</DealerCode>
      <LeadReference>string</LeadReference>
      <Title>string</Title>
      <Firstname>string</Firstname>
      <Lastname>string</Lastname>
      <Email>string</Email>
      <Address1>string</Address1>
      <Address2>string</Address2>
      <Address3>string</Address3>
      <City>string</City>
      <Postcode>string</Postcode>
      <County>string</County>
      <Country>string</Country>
      <Interest>string</Interest>
      <IRD>dateTime</IRD>
      <BrochureRequest>boolean</BrochureRequest>
      <Mobile>string</Mobile>
      <Home>string</Home>
      <Work>string</Work>
      <TradeIn>boolean</TradeIn>
      <TestRideRequest>boolean</TestRideRequest>
      <Spare>string</Spare>
      <ExternalSourceName>string</ExternalSourceName>
      <PartExchangeVehicle>string</PartExchangeVehicle>
    </Upload>
  </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>
    <UploadResponse xmlns="http://contactonline.uk.com/UploadService/" />
  </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 /UploadService.asmx HTTP/1.1
Host: tools.contactonline.co.uk
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:Header>
    <Authentication xmlns="http://contactonline.uk.com/UploadService/">
      <Username>string</Username>
      <Password>string</Password>
    </Authentication>
  </soap12:Header>
  <soap12:Body>
    <Upload xmlns="http://contactonline.uk.com/UploadService/">
      <DealerCode>int</DealerCode>
      <LeadReference>string</LeadReference>
      <Title>string</Title>
      <Firstname>string</Firstname>
      <Lastname>string</Lastname>
      <Email>string</Email>
      <Address1>string</Address1>
      <Address2>string</Address2>
      <Address3>string</Address3>
      <City>string</City>
      <Postcode>string</Postcode>
      <County>string</County>
      <Country>string</Country>
      <Interest>string</Interest>
      <IRD>dateTime</IRD>
      <BrochureRequest>boolean</BrochureRequest>
      <Mobile>string</Mobile>
      <Home>string</Home>
      <Work>string</Work>
      <TradeIn>boolean</TradeIn>
      <TestRideRequest>boolean</TestRideRequest>
      <Spare>string</Spare>
      <ExternalSourceName>string</ExternalSourceName>
      <PartExchangeVehicle>string</PartExchangeVehicle>
    </Upload>
  </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>
    <UploadResponse xmlns="http://contactonline.uk.com/UploadService/" />
  </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 /UploadService.asmx/Upload?DealerCode=string&LeadReference=string&Title=string&Firstname=string&Lastname=string&Email=string&Address1=string&Address2=string&Address3=string&City=string&Postcode=string&County=string&Country=string&Interest=string&IRD=string&BrochureRequest=string&Mobile=string&Home=string&Work=string&TradeIn=string&TestRideRequest=string&Spare=string&ExternalSourceName=string&PartExchangeVehicle=string HTTP/1.1
Host: tools.contactonline.co.uk
HTTP/1.1 200 OK

HTTP POST

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

POST /UploadService.asmx/Upload HTTP/1.1
Host: tools.contactonline.co.uk
Content-Type: application/x-www-form-urlencoded
Content-Length: length

DealerCode=string&LeadReference=string&Title=string&Firstname=string&Lastname=string&Email=string&Address1=string&Address2=string&Address3=string&City=string&Postcode=string&County=string&Country=string&Interest=string&IRD=string&BrochureRequest=string&Mobile=string&Home=string&Work=string&TradeIn=string&TestRideRequest=string&Spare=string&ExternalSourceName=string&PartExchangeVehicle=string
HTTP/1.1 200 OK