// include the class: include('nusoap.php'); // // instantiate a new soap client: $soapclient = new soapclient("http://api.google.com/search/beta2"); // // send the query off to the server, with our // parameters and using the 'doGoogleSearch' method $searchresults = $soapclient->call("doGoogleSearch", $params, "urn:GoogleSearch", "urn:GoogleSearch");