Re: [SOAP] Current SOAP Client issue?
| From: | Shane Caraveo | Date: | Mon, 03 Jun 2002 17:23:49 +0000 |
| Subject: | Re: [SOAP] Current SOAP Client issue? | ||
| References: | 1 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-51@lists.php.net to get a copy of this message | ||
Hmm, that's odd, I just copied the code, entered my key, and changed the query to 'caraveo' and it worked fine. Perhaps google api doesn't like searching for 'rasmus'! ;)
Anyway, you can: print $result->wire; after vardump. That will print the wire and I can see what is going on.
Shane
Rasmus Lerdorf wrote:
What am I missing here? <?require_once 'SOAP/Client.php';$s = new SOAP_Client('http://api.google.com/search/beta2');$q = 'Rasmus'; $key = 'xxx';$result = $s->call('doGoogleSearch', array( 'key' => $key, 'q' => $q, 'start' => 0, 'maxResults' => 10, 'filter' => false, 'restrict' => '', 'safeSearch' => false, 'lr' => '', 'ie' => '', 'oe' => '',), 'urn:GoogleSearch'); var_dump($result); ?> gives me: object(soap_fault)(7) { ["error_message_prefix"]=> string(13) "/search/beta2" ["mode"]=> int(1) ["level"]=> int(1024) ["code"]=> string(15) "SOAP-ENV:Client" ["message"]=> string(116) "parsing error: org.xml.sax.SAXParseException: An invalid second ':' was found in the element type or attribute name." ["userinfo"]=> NULL ["callback"]=> NULL } -Rasmus