Web Service Structure in EMP has mainly 3 parts:
...
URL to access web service: http://empdomain.biz/ws/api/webservicename/actionname
Example:
http://cloud.wavelet.biz/demo/ws/api/itemService/get
- Web Service Access Address: http://empdomain.biz/ws/api/ (Ask System Admin for this)
- Service Name: itemService
- Action Name: get
Actions
EMP has following Actions:
Action Name: get
get action mainly used to retrieve data from server. It has 3 parameters:
Parameter Name | Data Type | Required/Optional | Sample Data | Description |
userName | String | Required | chin | userName is being used for Authentication of the user to perform this action |
password | String | Required | 123456 | password is being used for Authentication of the user to perform this action |
queryObject | String | Required | Sample json data of queryObject parameter | This is a json data of SQL query |
Sample Code to call get action using JAVA Platform
Action Name: getCount
getCount action mainly used to retrieve number of records available in server for a particular query. It has 3 parameters:
...
Sample Code to call getCount action using JAVA Platform
Action Name: add
add action mainly used to send records to server to add in particular table. It has 3 parameters:
...