SessionService2.php in GlobalLink Connect for Drupal 7.5
File
gl_ws/client/SessionService2.php
View source
<?php
if (!class_exists('login')) {
class login {
public $username;
public $password;
}
}
if (!class_exists('loginResponse')) {
class loginResponse {
public $return;
}
}
if (!class_exists('logout')) {
class logout {
public $userId;
}
}
if (!class_exists('logoutResponse')) {
class logoutResponse {
public $return;
}
}
class SessionService2 extends SoapClient {
private static $classmap = array(
'login' => 'login',
'loginResponse' => 'loginResponse',
'logout' => 'logout',
'logoutResponse' => 'logoutResponse',
);
public function SessionService2($wsdl = 'http://localhost:8080/pd4/services/SessionService2?wsdl', $options = array()) {
foreach (self::$classmap as $key => $value) {
if (!isset($options['classmap'][$key])) {
$options['classmap'][$key] = $value;
}
}
parent::__construct($wsdl, $options);
}
public function logout(logout $parameters) {
return $this
->__soapCall('logout', array(
$parameters,
), array(
'uri' => 'http://impl.services2.service.ws.projectdirector.gs4tr.org',
'soapaction' => '',
));
}
public function login(login $parameters) {
return $this
->__soapCall('login', array(
$parameters,
), array(
'uri' => 'http://impl.services2.service.ws.projectdirector.gs4tr.org',
'soapaction' => '',
));
}
}