Re: Simple Example - Google Spell check - no worky

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

 



Hum,

Now I get the following error:

Call to undefined function: getproxy()

Complete code is now:

    // include the class
    require_once 'SOAP/Client.php';
    // create a instance of the SOAP client object
    $wsdl = new SOAP_WSDL('http://api.google.com/GoogleSearch.wsdl');
    $soapclient = $wsdl->getProxy();

   // set up an array containing input parameters to be
    // passed to the remote procedure
    $parms = array(
        'key'       => $devKey,         // Googlelicense key
        'phrase'    => $_POST['p']      // term to check
    );

    // invoke the method on the server
    $result = $soapclient->doSpellingSuggestion($parms,'urn:GoogleSearch');
    if (!PEAR::isError($result)) {
         echo "Google suggests <b>" . $result . "</b> for the term <b>" .
$_POST['p'] . "</b><br>";
     } else {
        echo "No result or NULL returned<br>";
    }

-- 
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