<?php
ini_set ( "soap.wsdl_cache_enabled", "0" );
require_once ("nusoap/nusoap.php");
ini_set('display_errors',1);

$soapUrl = 'http://system.saas-systems.pl/soap.php?wsdl';
$soapUser = 'admin';
$soapPassword = 'rudemodz123';

$client = new nusoap_client ( $soapUrl, 'wsdl' );

$login_parameters = array (
		'user_auth' => array (
				'user_name' => $soapUser,
				'password' => md5 ( $soapPassword ),
				'version' => '1'
		),
		'application_name' => 'SoapTest',
		'name_value_list' => array ()
);

$login_result = $client->call ( 'login', $login_parameters );

if ($login_result ['id'] != '') {
	$this->session_id = $login_result ['id'];
}
?>