Zope test demo
The code demonstrates usage of basic authentication to connect to the server
setCredentials("username", "password");
$client->setDebug(2);
$resp = $client->send($req);
if (!$resp->faultCode()) {
$value = $resp->value();
print "I received:" . htmlspecialchars($value->scalarval()) . "
";
print "
I got this value back
pre>" .
htmlentities($resp->serialize()) . "\n";
} else {
print "An error occurred: ";
print "Code: " . htmlspecialchars($resp->faultCode())
. " Reason: '" . ($resp->faultString()) . "'
";
}
?>