I have an java program that connects to an webserver and communicates with an php file through xmlrpc. I have the need for more functions and so I need a little help here to have my server process each request:
Code:
Code: Select all
function Login($xmlrpcmsg)
{
$result = "Hi from the server, " . "Username: " . $xmlrpcmsg->getParam(0)->scalarVal() . " Password: " . $xmlrpcmsg->getParam(1)->scalarVal();
return new xmlrpcresp(new xmlrpcval($result, "string"));
}
$s = new xmlrpc_server(array(
"XmlRpcDemo.Login" => array(
"function" => "Login",
"signature" => $login_sig)
));
Code: Select all
$s = new xmlrpc_server(array(
"XmlRpcDemo.Login" => array(
"function" => "Login",
"signature" => $login_sig))
"XmlRpcDemo.Register" => array(
"function" => "Register",
"signature" => $login_sig)));
Much Appreciated,
Aric Holland