note 97104 added to soapserver.setpersistence

From: Date: Thu, 01 Apr 2010 13:25:24 +0000
Subject: note 97104 added to soapserver.setpersistence
Groups: php.notes 
Request: Send a blank email to php-notes+get-167617@lists.php.net to get a copy of this message
I want to give one example for the order of commands if you want to use a class in persistence mode. <?php // 1. class definition or include class UserService { public function __construct() { } } // 2. start the session after defining or including the class!! session_start(); // 3. instanciate the server $server = new SoapServer(null, array("something")); // 4. set the class to use $server->setClass('UserService'); // 5. set persistance mode $server->setPersistence(SOAP_PERSISTENCE_SESSION); // 6. handle the request $server->handle(); ?> ---- Server IP: 217.160.235.204 Probable Submitter: 89.244.145.236 ---- Manual Page -- http://www.php.net/manual/en/soapserver.setpersistence.php Edit -- https://master.php.net/note/edit/97104 Del: integrated -- https://master.php.net/note/delete/97104/integrated Del: useless -- https://master.php.net/note/delete/97104/useless Del: bad code -- https://master.php.net/note/delete/97104/bad+code Del: spam -- https://master.php.net/note/delete/97104/spam Del: non-english -- https://master.php.net/note/delete/97104/non-english Del: in docs -- https://master.php.net/note/delete/97104/in+docs Del: other reasons-- https://master.php.net/note/delete/97104 Reject -- https://master.php.net/note/reject/97104 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#167617) next »