PHP Classes

test error

Recommend this page to a friend!

      SOAP server class  >  All threads  >  test error  >  (Un) Subscribe thread alerts  
Subject:test error
Summary:error running test_http_date_soap.php
Messages:4
Author:Rupert Young
Date:2007-02-26 20:16:13
Update:2007-03-01 19:06:39
 

  1. test error   Reply   Report abuse  
Picture of Rupert Young Rupert Young - 2007-02-26 20:16:13
Hi,

I get the following error when running the test file,

"Error: the SASL client class needs to be loaded to be able to authenticate and access this site"

I am running this on an externally hosted linux server. Any idea what I am doing wrong?

I have changed the following parameters,

$error=$http_connection->Open(array(
"HostName"=>"www.xxxx.com", .....


"Host"=>"www.xxxx.com",
"EndPointURL"=>"http://www.xxxx.com/files/webservices/soapserver/date.soap",


And I changed the name of date.soap.php to date.soap.


Regards,
Rupert


  2. Re: test error   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2007-02-27 21:43:26 - In reply to message 1 from Rupert Young
It seems your Web server is requiring HTTP authentication. You need to download the SASL package to enable authentication support in the HTTP class.

phpclasses.org/sasl

  3. Re: test error   Reply   Report abuse  
Picture of Rupert Young Rupert Young - 2007-02-28 20:41:31 - In reply to message 1 from Rupert Young

Thanks. I already have sasl. But there is no class sasl_client_class

Which is the class that raises the error, as here in http.php,

if(function_exists("class_exists")
&& !class_exists("sasl_client_class"))
return($this->SetError("the SASL client class needs to be loaded to be able to authenticate".($proxy ? " with the proxy server" : "")." and access this site"));

  4. Re: test error   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2007-03-01 19:06:39 - In reply to message 3 from Rupert Young
It is in sasl.php script. You need to add include('sasl.php'); at the top of your HTTP SOAP client script to make the class be found.

 
For more information send a message to info at phpclasses dot org.