This method allows dealership staff members to be added.

URL : http://webservice.dealerhub.net/dealerhub/WS/DealerHubV1.cfc?wsdl

Method : AddStaff

Input Parameters :

XMLSecurity (XML packet)
XMLData (XML packet)

There are always 2 parameters passed, these are both XML strings, and the first is XMLSecurity which holds the secuirty information, i.e your access code and the dealercode that you want to access the data for, and the second is the XML data you are going to pass in.

If you need to view the information on how to format the XMLSecurity data string, please click here

XMLData Input fields Description:

Field Name Field Type Mandatory Field Description
StaffMember.Name String
Y
The users name
StaffMember.DisplayLang String
N
Display Language, set to EN, unless a none english language is required
StaffMember.Email String
N
The users email address
.StaffMember.Mobile Numeric
N
The users mobile number
StaffMember.LevelName String
N

The users userlevel name. Valid Names are:
Sales Manager
Sales Exec
Receptionist

Example XML Data packet you need to pass in:

<?xml version="1.0" encoding="UTF-8" ?>
<StaffMember>
<NAME>Mike Harrison</NAME>
<DISPLAYLANG>EN</DISPLAYLANG>
<EMAIL>mike.harrision@dealerhub.net</EMAIL>
<MOBILE>07345345345345</MOBILE>
<LEVELNAME>Sales Manager</LEVELNAME>
</StaffMember>

 

Output:

After your webservice call, you will either get a successful message for the output, or an error message depending on whats happened.

Example of a successful output

<?xml version="1.0" encoding="UTF-8"?>
<ResultSet>
<MessageCode>1000</MessageCode>
<Messagetxt>Record Inserted Successfully</Messagetxt>
</ResultSet>

Example output of an error message

<?xml version="1.0" encoding="UTF-8" ?>
<ResultSet>
<Error>
<ErrorCode>7</ErrorCode>
<ErrorInfo>Your XML data packet is not correctly formed XML</ErrorInfo>
</Error>
</ResultSet>

There may be multiple errors returned in the XML packet, they are separated by <Error> blocks and each block contains an ErrorCode to allow you to do some processing logic on the numerical value returned, and an ErrorInfo which is used by the developer or administrator to visually see what the problem is with the submission.Click here to see all the ErrorCodes