Child pages
  • Metodi - wsLoginEstesa

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This method verifies that customer’s username and password are correct.
@GET
@Path("/wsLoginEstesa")
@QueryParam("CODE") String CODE,
@QueryParam("USERNAME") String USERNAME,
@QueryParam("PASSWORD") String PASSWORD,
@QueryParam("LANG") String LANG),
@QueryParam("USERAGENT") String USERAGENT),@QueryParam("FILTROCOMPANY") String FILTROCOMPANY,
@QueryParam("COMPANY") String COMPANY,
@QueryParam("TIPOAPPWEB") String TIPOAPPWEB

PARAMETERSDESCRIPTION
CODEcontrol code, built as md5hash of a value that depends from db
USERNAMECan be point of sale code, point of sale e-mail address or operating office code, as saved in UNOPV table of Vega. If operating office code is used and that office has more then one point of sale with same password, this method retrieve from db all these points of sale and, after login in, customer has to select the point of sale for which he wants to order products. As well as if e-mail address is used and more points of sales share same address and same password
PASSWORDpassword as saved in UNOPV table of Vega
LANGlanguage to be used to retrieve descriptions from db

Multiexcerpt include
SpaceWithExcerptVKB
MultiExcerptNameVegawebLanguages
PageWithExcerptVegaweb languages

USERAGENTNot used at the moment
FILTROCOMPANYin multicompany Vega db, list of company codes (as defined in Vega db) for companies whose points of sale can place order on Vegaweb. Null if points of sale from all companies can place order or if companies are not defined in Vega
COMPANYNot used at the moment
TIPOAPPWEBIt identifies the application that uses the web serviceW = vegaweb web site
L = LiPETS app


OUTPUT DATADESCRIPTIONVALUES
ResultCodeMethod result1 if no errors. Cf. error codes description for other values
UnopvRecordset with points of sale data (Cf. Unopv recordset)
ClienteOperating office data (Cf. Cliente Recordset
NewTokenToken to be used with wsLoginToken
ContattoNew customer‘s data. Null for login with customer of Vega


ERROR CODEDESCRIPTION
Codes for bad CODECf. Error codes for bad CODE parameter
-2Forbidden access due to wrong username/password or missing point of sale serial number
-3Username is null
-4Password is null
-5More registered offices share the same e-mail address, that is not possible in Vegaweb
-6Inactive point of sale
-7Withdrawn point of sale
-56

IfPASSWORD is not valid. The customer can’t log in before he has change it. Call method wsForzaCambiaPassword to set a new password.



Anchor
BadCodeParameter
BadCodeParameter
Multiexcerpt include
SpaceWithExcerptVKB
MultiExcerptNameErrorCodesForBadCodeParameter
PageWithExcerptOutput - Error codes for bad CODE parameter


Anchor
UnopvRecordset
UnopvRecordset
Multiexcerpt include
SpaceWithExcerptVKB
MultiExcerptNameUnopvRecordset
PageWithExcerptOutput - Unopv recordset


Anchor
ClienteRecordset
ClienteRecordset
Multiexcerpt include
SpaceWithExcerptVKB
MultiExcerptNameClienteRecordset
PageWithExcerptOutput - Cliente recordset