Re: [SOAP] Current SOAP Client issue?
| From: | brad lafountain | Date: | Mon, 03 Jun 2002 17:03:17 +0000 |
| Subject: | Re: [SOAP] Current SOAP Client issue? | ||
| References: | 1 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-49@lists.php.net to get a copy of this message | ||
I don't know enough about pear soap to answer that but...
<?
$s = new SoapObject('GoogleSearch.wsdl');
$q = 'rodif_bl@yahoo.com';
$key = 'xxx';
$result = $s->doGoogleSearch($key, $q, 0, 10, false, '', false, '',
'',
'');
var_dump($result);
?>
Works fine with php-soap.
- Brad
--- Rasmus Lerdorf <rasmus@lerdorf.ca> 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
>
>
> --
> PHP Soap Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com