Problem with Google Search API
| From: | Jean-Marc Fontaine | Date: | Mon, 02 Oct 2006 17:02:18 +0000 |
| Subject: | Problem with Google Search API | ||
| Groups: | php.soap | ||
| Request: | Send a blank email to php-soap+get-2376@lists.php.net to get a copy of this message | ||
Hello,
I am trying to use the Google Search API with PHP 5 and I got this
message error :
"No Deserializer found to deserialize a ':key' using encoding style
'http://schemas.xmlsoap.org/soap/encoding/'."
Here is the code I use :
<?php
$client = new SoapClient('GoogleSearch.wsdl');
try {
$result = $client->DoGoogleSearch('MY_GOOGLE_KEY',
'php5',
0,
10,
false,
'',
false,
'',
'',
'');
foreach ($result->resultElements as $resultElement) {
echo $resultElement->URL;
}
} catch (SOAPFault $f) {
echo $f->faultstring . "<br>";
}
?>
I use the SOAP extension with PHP 5.1.6 on Ubuntu.
Thanks for you help.
Jean-Marc