I need to call webservice for create data into db need to know how to call it.

I need to call webservice for create data into db need to know how to call it.
signature of method is GenericSvcRespMsg Test(String id, String name, int status, String rollno)
which returns json format. "SUCCESS" if successfully create data into database.
below code is single row for test.. i have to pass list of data to webservice how do it.

load(
local!response:a!httpWrite(
method: "POST",
url: "http://..../Service.svc/Common/LookupCode/CreateCauseCat",
/* headers: a!httpHeader("X-Appian-User", loggedInUser()),*/
queryParameters: { a!httpQueryParameter("id", "XX"), a!httpQueryParameter("name", "Static Test"),
a!httpQueryParameter("status", 1), a!httpQueryParameter("rollno", ri!username)}

),
local!json:local!response,
if(
isnull(local!json),
local!json,
local!json
)
)

OriginalPostID-171068

OriginalPostID-171068

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data