Commit b7b1554e7155e42b5f06ce80636a3a3fe84378d7

Authored by Adhidarma Hadiwinoto
1 parent 6c9078fb5b
Exists in master

pakai soapaction ""

Showing 1 changed file with 2 additions and 4 deletions Side-by-side Diff

partner-kospinjasa.js
... ... @@ -82,8 +82,6 @@ function topupRequestSoap(task, params, retry) {
82 82 logger.info('Requesting to service', {url: config.h2h_out.partner, params: _params});
83 83  
84 84 soapClient.apih2h.apih2hPort.billpayment({ inputCheck: _params }, function(err, result) {
85   - logger.info('SOAPAction', soapClient.SOAPAction);
86   -
87 85 logger.info('Got response', {lastRequest: soapClient.lastRequest, lastMessage: soapClient.lastMessage, lastEndpoint: soapClient.lastEndpoint});
88 86  
89 87 if (err) {
... ... @@ -105,7 +103,7 @@ function topupRequestSoapDIY(task, params, retry) {
105 103 var message = whiskers.render(soapTemplate, params);
106 104 logger.verbose("Generating SOAP message", {message: message});
107 105  
108   - var partnerUrl = url.parse(config.h2h_out.partner_endpoint);
  106 + var partnerUrl = url.parse(config.h2h_out.partner);
109 107 var postRequest = {
110 108 host: partnerUrl.hostname,
111 109 path: partnerUrl.path,
... ... @@ -114,7 +112,7 @@ function topupRequestSoapDIY(task, params, retry) {
114 112 headers: {
115 113 'Content-Type': 'application/soap+xml',
116 114 'Content-Length': Buffer.byteLength(message),
117   - 'SOAPAction': 'apih2h#billpayment'
  115 + 'SOAPAction': ''
118 116 }
119 117 };
120 118