Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $referencecode=addslashes($_POST['refID']);
- $username=addslashes($_POST['username']);
- $password=addslashes($_POST['password']);
- $xml='<?xml version="1.0" encoding="UTF-8"?>
- <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:WSPINIntf-IWSPIN" 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/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
- <SOAP-ENV:Body>
- <ns1:PaymentStatus>
- <wsuser xsi:type="xsd:string">test@payzpin.com</wsuser>
- <wspass xsi:nil="true">test123*!</wspass>
- <apikey xsi:nil="true">AUB0UDB4VI9PR7DQCGX0IO4ENH732D4ACQS5Y48YVNUX99BALI</apikey>
- <username xsi:nil="true">'.$username.'</username>
- <password xsi:nil="true">'.$password.'</password>
- <referencecode xsi:nil="true">'.$referencecode.'</referencecode>
- </ns1:PaymentStatus>
- </SOAP-ENV:Body>
- </SOAP-ENV:Envelope>';
- $url="http://188.165.81.253:8080/myapp/WSPIN.dll/soap/IWSPIN";
- $ch = curl_init($url);
- //curl_setopt($ch, CURLOPT_MUTE, 1);
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: text/xml; charset=utf-8'));
- curl_setopt($ch, CURLOPT_POSTFIELDS, "$xml");
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_close($ch);
- $output = curl_exec($ch);
- if(curl_exec($ch) === false)
- {
- echo 'Curl error: ' . curl_error($ch);
- }
- var_dump($output);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement