Re: [SOAP] Current SOAP Client issue?
| From: | Andrei Zmievski | Date: | Mon, 03 Jun 2002 19:26:19 +0000 |
| Subject: | Re: [SOAP] Current SOAP Client issue? | ||
| References: | 1 2 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-68@lists.php.net to get a copy of this message | ||
On Mon, 03 Jun 2002, Rasmus Lerdorf wrote:
> Well, it isn't very simple, but here it is:
>
> <?
> require_once 'SOAP/Client.php';
>
> $s = new
> SOAP_Client('http://api.google.com/search/beta2');
>
> $q = 'foo';
> $key = "xxx";
>
> $result = $s->call('doGoogleSearch', array(
> 'key' => $key, 'q' => $q,
> 'start' => 0, 'maxResults' => 1,
> 'filter' => false, 'restrict' => '',
> 'safeSearch' => false, 'lr' => '',
> 'ie' => '', 'oe' => '',
> ), 'urn:GoogleSearch');
>
> echo $result['resultElements']['item']['URL'];
Okay, I'll try to debug it.
-Andrei http://www.gravitonic.com/
"The secret of flying is to throw yourself
at the ground, and miss." -- Douglas Adams