Commit 68bd2319b6b866bb9ba905f244ae992873b8715c

Authored by Adhidarma Hadiwinoto
1 parent b6b185202d
Exists in master

buang easysoap

Showing 1 changed file with 0 additions and 34 deletions Side-by-side Diff

partner-kospinjasa.js
... ... @@ -2,7 +2,6 @@ var winston = require('winston');
2 2 var soap = require('soap');
3 3 var crypto = require('crypto');
4 4 var strftime = require('strftime');
5   -var easysoap = require('easysoap');
6 5  
7 6 var max_retry = 10;
8 7 var sleep_before_retry = 5000;
... ... @@ -56,39 +55,6 @@ function topupRequest(task, retry) {
56 55 topupRequestSoap(task, params, retry);
57 56 }
58 57  
59   -function topupRequestEasySoap(task, args, retry) {
60   - //partner=http://203.130.243.155/ApiH2H/index.php?wsdl
61   -
62   - var clientParams = {
63   - host: '203.130.243.155',
64   - path: '/ApiH2H/index.php',
65   - wsdl: '/ApiH2H/index.php?wsdl'
66   - }
67   -
68   - var clientOptions = {
69   - secure: false,
70   - }
71   -
72   - var soapClient = new easysoap.Client(clientParams, clientOptions);
73   - soapClient.call(
74   - {method: 'billpayment', params: args}
75   - ).done(
76   - //success
77   - function(res) {
78   - res.data // response data as array
79   - res.response // full response data (including xml)
80   - res.header // response header
81   - },
82   -
83   - //method fail
84   - function(err) {
85   - console.log(err);
86   - }
87   - );
88   -
89   - callbackReport(task.requestId, '68', 'debug');
90   -}
91   -
92 58 function topupRequestSoap(task, params, retry) {
93 59  
94 60 soap.createClient(config.h2h_out.partner, function(err, soapClient) {