I am trying to integrate login from a third part application into my site via SOAP. I've written a login function which logs me in if executed direct in browser. Afterwards I tryed to place it into soap function. There are some includes from the 3rd part application. With SOAP all included classes are incomplete:
__PHP_Incomplete_Class Object
I've read that it happens if session is started before classes are declared. But it cannot be a reason for fault in my case. I include all classes first of all and afterwards the session is started. I checked if session is being started before classes are included with echo session_id() and there was no printout. After session is started I can see the session_id.
My SOAP function is very simple:
Code: Select all
function login($userdata) {
require_once('firstclass.php');
require_once('secondclass.php');
require_once('thirdclass.php');
do login .....
...... ;
return;
}Thank you,
Sonya