Commit 048b9c2aa3d2df153042fda9c465d4b5fc1cd7e1

Authored by Adhidarma Hadiwinoto
1 parent 1c15cd1833
Exists in master

coba diy application/soap+xml

Showing 2 changed files with 2 additions and 3 deletions Side-by-side Diff

1 1 <?xml version="1.0" encoding="utf-8"?>
2   -
3 2 <SOAP-ENV:Envelope
4 3 SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
5 4 xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
partner-kospinjasa.js
... ... @@ -59,7 +59,7 @@ function topupRequest(task, retry) {
59 59 var signature = createSignature(params, config.h2h_out.password);
60 60 params.signature = signature;
61 61  
62   - topupRequestSoap(task, params, retry);
  62 + topupRequestSoapDIY(task, params, retry);
63 63 }
64 64  
65 65 function topupRequestSoap(task, params, retry) {
... ... @@ -111,7 +111,7 @@ function topupRequestSoapDIY(task, params, retry) {
111 111 port: partnerUrl.port,
112 112 method: "POST",
113 113 headers: {
114   - 'Content-Type': 'application/soap',
  114 + 'Content-Type': 'application/soap+xml',
115 115 'Content-Length': Buffer.byteLength(message)
116 116 }
117 117 };