gayanc
1/25/2016 - 10:51 AM

Get

Get

<?php
//echo phpinfo();
error_reporting(E_ALL);
ini_set('display_errors', true);
ini_set('display_startup_errors', true);
 
$test = '<?xml version="1.0" encoding="utf-8"?>
            <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
              <soap:Header>
                <UserCredentials xmlns="https://81.142.116.75:6001/">
                  <userName>webservice</userName>
                  <password>pUl53-wEBse4v1Ce</password>
                </UserCredentials>
              </soap:Header>
              <soap:Body>
                    <GetCampaignLists xmlns="https://81.142.116.75:6001/" />
              </soap:Body>
            </soap:Envelope>';
 
$location_URL = "https://81.142.116.75:6001/CM_AdminWebservice/CM_AdminWebService.asmx";
$action_URL = "https://81.142.116.75:6001/CM_AdminWebService/GetCampaignLists"; 

$client = new SoapClient(null, array(
'location' => $location_URL,
'uri'      => "",
'trace'    => 1,
));
 
try{
$order_return = $client->__doRequest($test,$location_URL,$action_URL,1);
    //Get response from here
    var_dump($order_return);
}catch (SoapFault $exception){
    var_dump(get_class($exception));
    var_dump($exception);
}

?>