This documentation is for WSO2 Data Services Server 3.1.0. View the home page of the latest release.

Unknown macro: {next_previous_link3}
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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:

Note that with the given parameters, the "salary" value is also set to 1500. This is the default value for that field when the parameter value is not given.

 

  • No labels