RegistrationInformationService Class |
All methods need an UserDTO as input - login user by using Login(UserDTO, TermsDTO, String) to get an UserDTO.
All methods need a format as input (json/xml) - result of request is delivered on format selected.
Namespace: OfvVehicleData.Service
public class RegistrationInformationService
The RegistrationInformationService type exposes the following members.
| Name | Description | |
|---|---|---|
| RegistrationInformationService | Initializes a new instance of the RegistrationInformationService class |
| Name | Description | |
|---|---|---|
| ChassisNoSearch |
Chassis number search for vehicle.
Returns object with registration-, eu-control-, owner-information and list of similar vehicles presented to marked when vehicle was new. | |
| RegNoSearch |
Registration number search for vehicle.
Returns object with registration-, eu-control-, owner-information and list of similar vehicles presented to marked when vehicle was new. |
Below is a simple example, that shows how to call the service RegNoSearch(UserDTO, String, Int32, String).
function runRegNoSearch() { var userObject = { "username": "your username", "token": "token you get from login", "ipAddress": "your ip address" }; var url = "https://www.kjoretoydata.no/RegNoInformation/RegNoSearch?format=json"; var input = { "user": userObject, "searchString": "AB12345", "vehicleGroup": "101" }; $.ajax({ type: "POST", url: url, data: JSON.stringify(input), processData: true, contentType: "application/json; charset=utf-8", dataType: "json", success: function (response) { alert('Result: ' + response); } , error: function (request, status, error) { alert('Error:' + request.status + ',' + request.statusText + ',' + request.responseText); } }); }