function executeTacRequest() { path ="bii_RestfulRib/service/IBCommonServices/executeTacRequest"; var input = { method: 'post', returnedContentType: 'json', path: path, body: { contentType: 'application/json; charset=UTF-8', content: JSON.stringify({ "locale":"en", "userId":"1391", "tacBean":tacBean, "cifNo":"0002768476", "sessionId":"1234567890", "remoteIPAddress":"10.247.12.12", "userAgent":"worklight invocation" }) } }; return WL.Server.invokeHttp(input); } var tacBean = JSON.stringify( { "amount": "", "beneName": "", "fromAccount": "1001027095", "serviceName": "Favorite Mobile Reload", "tacMobileNo": null, "toAccount": "" } );