Article Details
Id:12535
Product:finPOWER Connect
Type:NEW
Version:2.02.04
Opened:07/11/2014
Closed:22/12/2014
Released:13/02/2015
Job: J014451

MotorWeb; fully implement VIR Response XML

The Response returned from a MotroWeb VIR is now fully expanded into objects within finPOWER Connect, allowing enhanced information to be retrieved.

An example of using this in code is given below:

Public Function Main(parameters As ISKeyValueList) As Boolean Dim response As ISSecurityEnquiryResponse_MotorWeb_Vir ' Assume Success Main = True With finBL.SecurityEnquiryMotorWeb If .ExecuteGetVehicleReportXMLFromPlateOrVin("PLATE", response) Then finBL.DebugPrint(response.VirAnalysis.Vehicle.Vin) finBL.DebugPrint(response.VirAnalysis.Vehicle.CountryOfOriginCode) finBL.DebugPrint(response.VirAnalysis.Vehicle.MaxRatedTowedMassForBrakedTrailerValue & " " & response.VirAnalysis.Vehicle.MaxRatedTowedMassForBrakedTrailerUnit) Else MsgBox(finBL.Error.Message(True, True)) End If End With End Function</code>