Vehicle Web Services

Top  Previous  Next

The main data download is a RESTFUL web service which returns XML, the URL for this is :- http://services.dmservices.co.uk/DmsNavigator.NavigatorWebService.svc/GetVehicleStockData/[API KEY]
 

API Key supplied by Navigator.

 
Please be aware that this is designed to be used in the background to replicate the data onto the web server regularly - perhaps once a day - and not "live"
 
The vehicle has an "PictureRefs" array, which contains a list of images that are available.  

 

To retrieve an image use a URL such as :-

 
http://services.dmservices.co.uk/DmsNavigator.NavigatorWebService.svc/GetImage/[API KEY],[filename]
 

API Key supplied by Navigator.

 
Where filename is the string in the PictureRefs array.    This returns an image, so can be included as the location for an html image tag.

 

An example of the XML returned by the GetVehicleStockData service is :-

 

<GetVehicleStockDataResponse xmlns="http://www.dmservices.co.uk">

<GetVehicleStockDataResult xmlns:a="http://schemas.datacontract.org/2004/07/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">

<errMsg xmlns="http://schemas.datacontract.org/2004/07/DmsNavigator" i:nil="true"/>

<isSuccess xmlns="http://schemas.datacontract.org/2004/07/DmsNavigator">true</isSuccess>

<a:StockItems>

<a:VehicleStockStockItem>

<a:Bodytype>Door Hatchback</a:Bodytype>

<a:Colour>SILVER</a:Colour>

<a:Comments/>

<a:Commercial>false</a:Commercial>

<a:Doors>5</a:Doors>

<a:EngineSize>1390</a:EngineSize>

<a:Feed_Id/>

<a:FranchiseApproved>false</a:FranchiseApproved>

<a:FuelType>Petrol</a:FuelType>

<a:FullRegistration>AF59MEV-16955</a:FullRegistration>

<a:Make>Volkswagen</a:Make>

<a:Mileage>1500</a:Mileage>

<a:Model>Golf</a:Model>

<a:New>false</a:New>

<a:Options/>

<a:PictureRefs xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/Arrays">

<b:string>3219.jpg</b:string>

<b:string>3219_01.jpg</b:string>

</a:PictureRefs>

<a:Price>6066</a:Price>

<a:Transmission>Manual 5 Gears</a:Transmission>

<a:Used>true</a:Used>

<a:Variant>S</a:Variant>

<a:Vehicle_ID>3219</a:Vehicle_ID>

<a:Year>192009</a:Year>

</a:VehicleStockStockItem>

</a:StockItems>

</GetVehicleStockDataResult>

</GetVehicleStockDataResponse>