| 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 BooleanDim response As ISSecurityEnquiryResponse_MotorWeb_Vir' Assume SuccessMain = TrueWith finBL.SecurityEnquiryMotorWebIf .ExecuteGetVehicleReportXMLFromPlateOrVin("PLATE", response) ThenfinBL.DebugPrint(response.VirAnalysis.Vehicle.Vin)finBL.DebugPrint(response.VirAnalysis.Vehicle.CountryOfOriginCode)finBL.DebugPrint(response.VirAnalysis.Vehicle.MaxRatedTowedMassForBrakedTrailerValue & " " & response.VirAnalysis.Vehicle.MaxRatedTowedMassForBrakedTrailerUnit)ElseMsgBox(finBL.Error.Message(True, True))End IfEnd WithEnd Function</code>