Commit 6c9078fb5b5aa50d28a383460118bd8b4b4acdf4

Authored by Adhidarma Hadiwinoto
1 parent 66ed02be49
Exists in master

coba hack soapaction

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

1   -<?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/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="urn:apih2h"><SOAP-ENV:Body><tns:billpayment xmlns:tns="urn:apih2h"><inputCheck xsi:type="tns:inputCheck"><userName xsi:type="xsd:string">{userName}</userName><signature xsi:type="xsd:string">{signature}</signature><productCode xsi:type="xsd:string">{productCode}</productCode><terminal xsi:type="xsd:string">{terminal}</terminal><transactionType xsi:type="xsd:string">{transactionType}</transactionType><billNumber xsi:type="xsd:string">{billNumber}</billNumber><amount xsi:type="xsd:string">{amount}</amount><bit61 xsi:type="xsd:string">{bit61}</bit61><reff xsi:type="xsd:string">{reff}</reff><timeStamp xsi:type="xsd:string">{timeStamp}</timeStamp></inputCheck></tns:billpayment></SOAP-ENV:Body></SOAP-ENV:Envelope>
  1 +<?xml version="1.0" encoding="utf-8"?>
  2 +
  3 +<SOAP-ENV:Envelope
  4 + SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
  5 + xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
  6 + xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  7 + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  8 + xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
  9 + xmlns:tns="urn:apih2h">
  10 +
  11 + <SOAP-ENV:Body>
  12 + <tns:billpayment xmlns:tns="urn:apih2h">
  13 + <inputCheck xsi:type="tns:inputCheck">
  14 + <userName xsi:type="xsd:string">{userName}</userName>
  15 + <signature xsi:type="xsd:string">{signature}</signature>
  16 + <productCode xsi:type="xsd:string">{productCode}</productCode>
  17 + <terminal xsi:type="xsd:string">{terminal}</terminal>
  18 + <transactionType xsi:type="xsd:string">{transactionType}</transactionType>
  19 + <billNumber xsi:type="xsd:string">{billNumber}</billNumber>
  20 + <amount xsi:type="xsd:string">{amount}</amount>
  21 + <bit61 xsi:type="xsd:string">{bit61}</bit61>
  22 + <reff xsi:type="xsd:string">{reff}</reff>
  23 + <timeStamp xsi:type="xsd:string">{timeStamp}</timeStamp>
  24 + </inputCheck>
  25 + </tns:billpayment>
  26 + </SOAP-ENV:Body>
  27 +</SOAP-ENV: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) {
... ... @@ -114,7 +114,7 @@ function topupRequestSoapDIY(task, params, retry) {
114 114 headers: {
115 115 'Content-Type': 'application/soap+xml',
116 116 'Content-Length': Buffer.byteLength(message),
117   - 'SOAPAction': 'billpayment'
  117 + 'SOAPAction': 'apih2h#billpayment'
118 118 }
119 119 };
120 120