Exemplo n.º 1
0
function xmlrpc_GetSupplier($xmlrpcmsg)
{
    ob_start('ob_file_callback');
    /*x*/
    if ($xmlrpcmsg->getNumParams() == 3) {
        /*x*/
        $rtn = new xmlrpcresp(php_xmlrpc_encode(GetSupplier($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval())));
        /*x*/
    } else {
        /*e*/
        $rtn = new xmlrpcresp(php_xmlrpc_encode(GetSupplier($xmlrpcmsg->getParam(0)->scalarval(), '', '')));
        /*x*/
    }
    ob_end_flush();
    return $rtn;
}
Exemplo n.º 2
0
function xmlrpc_GetSupplier($xmlrpcmsg)
{
    return new xmlrpcresp(php_xmlrpc_encode(GetSupplier($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval())));
}