Fatal Error: Class 'SoapClient' not found in <directory>

135 views
Skip to first unread message

Kalev

unread,
Jul 20, 2010, 10:04:40 PM7/20/10
to ZZEE PHP GUI
I received this error above when I ran the script below. <directory>
is where the PHP script is.
Should this work with PHP GUI? If so, why not?
<?php
$client = new
SoapClient(
"http://services.xmethods.net/soap/urn:xmethods-delayed-
quotes.wsdl"
);

print($client->getQuote("ibm"));
?>

Paul (ZZEE)

unread,
Jul 21, 2010, 4:00:54 AM7/21/10
to php...@googlegroups.com
> Should this work with PHP GUI? If so, why not?

Hi,

Any correct PHP code should.

Your code doesn't work because PHP can't find this SoapClient class. If
you use a built-in function, you need to activate an according php
extension in php.ini. Or if you a class from a file, you need to first put
this file somewhere (perhaps into the same directory where your script
is), and then do require_once to load this file into your script.


Reply all
Reply to author
Forward
0 new messages