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