Table of Contents
Introduction
<Explain what this sample does.
If we have prerequisites, please state>
Building the sample
<how to build this sample>
Executing the sample
This service uses validators in places where the validity of the input parameters has to be checked. This is shown in the "addEmployeeQuery" operation, by having a length validator for the "lastName" field where the length of the value should be between 3 and 20. Also, the "email" field is validated using a pattern validator which uses a regular expression to check if it's a real email address.
...
3. Run the "addEmployee" with parameters, employeeNumber=6001; lastName=ABC; firstName=Nick; email=test@test.com; salary=1500. Here the entry will be successfully added and you will get a result as follows:
...
hidden | true |
---|
...