debug_flag = 1; // set up an array containing input parameters to be // passed to the remote procedure $params = array( 'key' => 'm0nmJOdQFHLqAyh+2I5xIYzZ2f3kyFPg', // Google license key 'url' => 'leeleong.com', // URL to retrieve ); // invoke the method on the server $result = $soapclient->call("doGetCachedPage", $params, "urn:GoogleSearch", "urn:GoogleSearch"); if ($result) { // fault? if (is_array($result) && $result['faultstring']) { // display error echo $result['faultstring']; } else { // decode return value using base64 // and display // print base64_decode($result); print "$result"; } } ?>