servicio web google.api

raanglada
22 de Marzo del 2006
Saludos
Estoy enfrascrado en poder utilizar un servicio web que esta brindando google y no he podido hacerlo hasta el momento,

este es un fragmento del codigo en php que utilizo

<?php
require_once('nusoap.php');

$key = 'iwnUXUtHj3bteg5FWfBJDwui3SPeB+iy';

$Query = "programación";
$startPage = 0;

$parameters = array(
'key' => $key,
'q' => $Query,
'start' => $startPage,
'maxResults' => 10,
'filter' => false,
'restrict' => '',
'safeSearch' => false,
'lr' => '',
'ie' => '',
'oe' => ''
);

$soapclient = new soapclient('http://api.google.com/search/beta2');

$result = $soapclient->call('doGoogleSearch',$parameters, 'urn:GoogleSearch');

print_r ($result);
?>

no logro consumir el servicio web , lo sgte. es el warning que obtengo en el navegador

Warning: fsockopen() [function.fsockopen]: unable to connect to api.google.com:80 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ) in C:Apache2htdocswebsnusoap.php on line 1254

Fatal error: Maximum execution time of 30 seconds exceeded in C:Apache2htdocswebsnusoap.php on line 1254


Tu ayuda me seria genial

Slds
Alexander Anglada