new xmlrpcval("N/A"), "uddi_service_key" => new xmlrpcval(trim($row[1])), "access_point" => new xmlrpcval(trim($row[2])), "provider" => new xmlrpcval("N/A")), "struct"); } // add this array to the output value $v->addArray($outAr); return new xmlrpcresp($v); } $o=new xmlrpc_server_methods_container; $a=array( "gbif.getgbifservices" => array( "function" => "getgbifservices", "signature" => $getgbifservices_sig, "docstring" => $getgbifservices_doc ) ); $s=new xmlrpc_server($a, false); $s->setdebug(3); $s->compress_response = false; // out-of-band information: let the client manipulate the server operations. // we do this to help the testsuite script: do not reproduce in production! if (isset($_GET['RESPONSE_ENCODING'])) $s->response_charset_encoding = $_GET['RESPONSE_ENCODING']; $s->service(); // that should do all we need! ?>