note 83539 added to function.soap-soapserver-setpersistence

From: Date: Fri, 30 May 2008 19:54:32 +0000
Subject: note 83539 added to function.soap-soapserver-setpersistence
Groups: php.notes 
Request: Send a blank email to php-notes+get-140014@lists.php.net to get a copy of this message
When using "SoapServer::setPersistence( SOAP_PERSISTENCE_SESSION )", you apparently MUST include the class that was used in "SoapServer::setClass()" BEFORE any "session_*" commands. I found this out using "__autoload()" and a whole lot of "syslog()"; it kept failing to include the class that I was using for my soap server, but that class is ONLY ever referenced by the page itself, and even then only for the purposes of setting the class for the soap server; none of my code would ever cause it to autoload. The problem was that I was including my session-handling code first. If the session gets started BEFORE the page defines the class definition, then persistence CANNOT happen. The order should be: 1. Include the class for use with the soap server. 2. Start up your session. 3. Set up your soap server. 4. Handle your soap request. ---- Server IP: 208.69.120.35 Probable Submitter: 216.158.20.130 ---- Manual Page -- http://www.php.net/manual/en/function.soap-soapserver-setpersistence.php Edit -- https://master.php.net/note/edit/83539 Del: integrated -- https://master.php.net/note/delete/83539/integrated Del: useless -- https://master.php.net/note/delete/83539/useless Del: bad code -- https://master.php.net/note/delete/83539/bad+code Del: spam -- https://master.php.net/note/delete/83539/spam Del: non-english -- https://master.php.net/note/delete/83539/non-english Del: in docs -- https://master.php.net/note/delete/83539/in+docs Del: other reasons-- https://master.php.net/note/delete/83539 Reject -- https://master.php.net/note/reject/83539 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#140014) next »