$proxy_url, 'uri' => "http://test-uri/", 'trace' => true)); try{ $result = $client->authenticate($user, $pass); if (is_soap_fault($result)) { $msg = "\n0 - could not authenticate because: " . $result->faultstring . "\n"; } else { $msg = "\n1 - successfully authenticated.\n"; } echo $msg; } catch (Exception $e){ echo $e; echo "\nRaw Response:\n" . $client->__getLastResponse() . "\n"; } ?>