Request executeTacRequest.txt

Rayvandy Gabbytian , December 06, 2014 20:31

Download (831 Bytes)

 
1
function executeTacRequest() {
2
	path ="bii_RestfulRib/service/IBCommonServices/executeTacRequest";
3
	var input = {
4
		method: 'post',
5
		returnedContentType: 'json',
6
		path: path,
7
		body: {
8
			contentType: 'application/json; charset=UTF-8',
9
			content: JSON.stringify({
10
				"locale":"en",
11
            	"userId":"1391",
12
            	"tacBean":tacBean,
13
            	"cifNo":"0002768476",
14
            	"sessionId":"1234567890",
15
            	"remoteIPAddress":"10.247.12.12",
16
            	"userAgent":"worklight invocation"
17
			})
18
		}
19
	};
20
	return WL.Server.invokeHttp(input);
21
}
22

    
23
var tacBean = JSON.stringify(
24
		{
25
		      "amount": "",
26
		      "beneName": "",
27
		      "fromAccount": "1001027095",
28
		      "serviceName": "Favorite Mobile Reload",
29
		      "tacMobileNo": null,
30
		      "toAccount": ""
31
		   }                            	  );
32