I'm working with nusoap for one of the first times, but I'm having some trouble accessing it from within another class. For example
This works:
$client = new soapclient('https://myhost.com/soapservice');
$header = "<username/><password/><etc/>";
$client->setHeaders($header);
$response = $client->call("login");
But this doesn't:
require("nusoap.php"); // No errors on the include
class Login {
function Login() {
$client = new soapclient('https://myhost.com/soapservice');
$header = "<username/><password/><etc/>";
$client->setHeaders($header);
$response = $client->call("login");
}
}
$login = new Login();
I get the error Class 'soapclient' not found in C:\inetpub\wwwroot\file.php on line 23
Anyone have any idea why it's not working?
Thanks.
-Aaron