Skip to main content

sgrAdicionarVeiculoRapidoCompV5

Quick Vehicle Registration

SoapAction

PARAMETERS:

FieldTypeRequired?Description
keyaccessstringYesKey returned by the sgrLogin method.
cdpasintegerYesPAS code, returned by the sgrListPASUser method
cdclienteintegerYesCustomer code, returned by the sgrListaEmpresasPASUsuario method.
CadastroVeiculoclassYesVehicle data, filled in by the CadastroVeiculo object.

Observation: To make it easier to understand the secondary methods, which must be called to return the codes required in the parameters listed above, an analogy between the secondary methods and the registration screen in Clipas NET will be presented below. It should be noted that, as they are different systems, the Web Service and Clipas NET do not necessarily have to contain the same fields.

Figure 1: Quick vehicle registration screen in Clipas NET. In blue, the names of the parameters have been written. In red are the secondary methods.

METHOD RETURN:

ReturnDataset: If the parameters are correct, the vehicle is registered and the dataset is displayed:

FieldTypeDescription
CDVEICintegerRegistered vehicle code

ReturnDescription: If there is an error in the execution of the method, the object's property will display:

ErrorDescription
Vehicle could not be registeredIn this case, the Web Service must return the Dataset with the code and description of the errors that made registration impossible. The errors listed can be seen in Table 3.
If the client has the registration service, the object and method are used to add the vehicle: CadastroVeiculoCompleto