ID: 42157 Updated by: [EMAIL PROTECTED] Reported By: m dot wharton at waracle dot com -Status: Open +Status: Bogus Bug Type: SOAP related Operating System: Red Hat EL4 2.6.9 PHP Version: 5.2.3 Assigned To: dmitry New Comment:
Reopen if you find the cause. Previous Comments: ------------------------------------------------------------------------ [2007-08-01 11:20:57] m dot wharton at waracle dot com Hi, I have the classmapping working now, the problem has stopped occurring and i Have no idea what caused it. I will experiment and try to find the fault again. thanks ------------------------------------------------------------------------ [2007-08-01 11:07:41] [EMAIL PROTECTED] Please provide a full reprodusable case (client and server code). ------------------------------------------------------------------------ [2007-07-31 12:10:30] m dot wharton at waracle dot com Description: ------------ Hi, I was writing a number of soap services that deal with user management for a system I'm building. One of these services deals with loggin a user onto the system and returns an object, which holds details of the user and also an array with their access levels for various parts of the system.Now I set up all the complex types in the WSDL, and mapped the class successfully in the SOAP server. And it worked...most the time. I found that the classmapping would work but every so often (it actually followed a pattern) the server would ignore the classmapping and the client would recieve a stdClass object. It worked every 14 requests, and then returns stdClass on the 15th. This pattern actually changed at one point, to being 010111 (where 1 is the classmap working) after modifying the WSDL. However I found that after setting soap.wsdl_cache_enabled=0 to 1 stopped the classmap working AT ALL, then when its set back to 0 again it works perfectly, no intermittant faults. Reproduce code: --------------- //SERVER: ini_set('soap.wsdl_cache_enabled', '0'); $server = new SoapServer('http://dev.polygoogle.co.uk/services/wsdl/userManager.wsdl', array('classmap' => array('userLoginResponse' => 'userLoginResponse'))); $server->setClass('userManagerWrapper'); //CLIENT: $classmap = array('userLoginResponse' => 'userLoginResponse'); $client = new SoapClient('http://dev.polygoogle.co.uk/services/wsdl/userManager.wsdl',array('classmap' => $classmap)); $result = new userLoginResponse; $result = $client->userLogin($user,$password); //WSDL: http://dev.polygoogle.co.uk/services/wsdl/userManager.wsdl Expected result: ---------------- I expected the result to be consistant, i.e. classmap working or not working. Not working every 15th request or following a pattern of either working or not seems like a caching bug or something. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42157&edit=1