Re: [SOAP] Simple Example - Google Spell check - no worky

From: Date: Wed, 10 Dec 2003 11:51:58 +0000
Subject: Re: [SOAP] Simple Example - Google Spell check - no worky
References: 1 2 3 4 5 6 7  Groups: php.soap 
Request: Send a blank email to php-soap+get-1219@lists.php.net to get a copy of this message
Hi, this is what I tried: <?php require_once 'SOAP/Client.php'; $wsdl = new SOAP_WSDL('http://api.google.com/GoogleSearch.wsdl'); $soapclient = $wsdl->getProxy(); $result = $soapclient->doSpellingSuggestion("devkey", "hemmingway"); print_r($result); ?> and this is what I got: soap_fault Object ( [error_message_prefix] => /search/beta2 [mode] => 1 [level] => 1024 [code] => SOAP-ENV:Server [message] => Exception from service object: Invalid authorization key: ... which is the expected result since I didn't provide a fitting devkey. What are you getting? And: How did you install PEAR? Didn't you use the PEAR package manager? Regards Christian Blaine Lang wrote: > Hi Christian -- still hanging in there with me. Thanks :) > > For some reason, I was missing some files in my SOAP libraries. > So I downloaded a new archive from pear.php.net. I've installed the latest > SOAP, HTTP and NET libraries. All are directories where this example is > running from - so all are relative paths. > > I get further - no errors but no results and it appears to hang at the > soapclient call to doSpellingSuggestion(). > > I tried this both with the proxy method and non-proxy method -- same no > results or apparent return after the call above. > I add a echo stmt after that call and never see it.

« previous php.soap (#1219) next »