31 lines
1.1 KiB
PHP
31 lines
1.1 KiB
PHP
<?php
|
|
/*
|
|
User profile: SESS38R7
|
|
Customer no.: 32790
|
|
Password : E88MSU4
|
|
https://www.webservices.graydon.co.uk
|
|
*/
|
|
|
|
ini_set('soap.wsdl_cache_enabled', 0);
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pays.php';
|
|
require_once realpath(dirname(__FILE__)).'/graydon_config.php';
|
|
require_once realpath(dirname(__FILE__)).'/graydon_log.php';
|
|
require_once realpath(dirname(__FILE__)).'/graydon_error.php';
|
|
require_once realpath(dirname(__FILE__)).'/graydon_functions.php';
|
|
require_once realpath(dirname(__FILE__)).'/graydon_format.php';
|
|
require_once realpath(dirname(__FILE__)).'/graydon_wsfunctions.php';
|
|
|
|
//$options = array('trace' => 1, 'features' => SOAP_USE_XSI_ARRAY_TYPE + SOAP_SINGLE_ELEMENT_ARRAYS);
|
|
$options = array('trace' => 1, 'features' => SOAP_SINGLE_ELEMENT_ARRAYS);
|
|
// Create a soap client
|
|
$graydon = new SoapClient(GRAYDON_WSDL, $options);
|
|
// Create the authentication parameters object
|
|
$authentication = new StdClass();
|
|
// Initialise the authentication parameters
|
|
$authentication->PartnerUserId = USER_PROFILE;
|
|
$authentication->PartnerPassword = PASSWORD;
|
|
$authentication->PartnerClientId = '';
|
|
$authentication->SessionID = '';
|
|
|
|
?>
|