diff --git a/message.xml b/message.xml index d73530a..1f28ad6 100644 --- a/message.xml +++ b/message.xml @@ -1,5 +1,4 @@ <?xml version="1.0" encoding="utf-8"?> - <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" diff --git a/partner-kospinjasa.js b/partner-kospinjasa.js index 8e2bf88..c606979 100644 --- a/partner-kospinjasa.js +++ b/partner-kospinjasa.js @@ -59,7 +59,7 @@ function topupRequest(task, retry) { var signature = createSignature(params, config.h2h_out.password); params.signature = signature; - topupRequestSoap(task, params, retry); + topupRequestSoapDIY(task, params, retry); } function topupRequestSoap(task, params, retry) { @@ -111,7 +111,7 @@ function topupRequestSoapDIY(task, params, retry) { port: partnerUrl.port, method: "POST", headers: { - 'Content-Type': 'application/soap', + 'Content-Type': 'application/soap+xml', 'Content-Length': Buffer.byteLength(message) } };