Problem with Google Search API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux