Current SOAP Client issue?
| From: | Rasmus Lerdorf | Date: | Mon, 03 Jun 2002 16:40:32 +0000 |
| Subject: | Current SOAP Client issue? | ||
| Groups: | php.soap | ||
| Request: | Send a blank email to php-soap+get-48@lists.php.net to get a copy of this message | ||
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