Versions Compared

Key

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

What the business usecase of the sample? Prerequisites if any and how to build?

The operation "addEmployee" uses the facility to give default values to certain fields, if they were chosen not to be given an explicit value. Here, the parameter "salary" is given the default value 1500. This can be checked by calling the "addEmployee" operation with parameters except the "salary" value. For example, if the parameter values are employeeNumber=6002; lastName=Smith; firstName=John; email=john@smith.com, a call to the operation "employeesByNumber" with employeeNumber=6002 will result in the following:

...