Versions Compared

Key

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

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

 

Actions

EMP has following Actions:

 

Action Name: get

get action mainly used to retrieve data from server. It has 3 parameters:

Parameter NameData TypeRequired/OptionalSample DataDescription
userNameStringRequiredchinuserName is being used for Authentication of the user to perform this action
passwordStringRequired123456password is being used for Authentication of the user to perform this action
queryObjectStringRequiredSample json data of queryObject parameterThis 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:

Parameter NameData TypeRequired/OptionalSample DataDescription
userNameStringRequiredchinuserName is being used for Authentication of the user to perform this action
passwordStringRequired123456password is being used for Authentication of the user to perform this action
queryObjectStringRequiredSample json data of queryObject parameterThis is a json data of SQL query

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:

...