function login($username, $password) { $ConfigManager = new ConfigManager(); $elementNamespace = $ConfigManager->getGecredNamespace(); $gecredUrl = $elementNamespace . '.php?wsdl'; $client = new nusoap_client($gecredUrl, true); // false: no WSDL // Call the SOAP method $result = $client->call('login', array('username' => $username, 'password' => $password)); return $result; }