SOAP extensions in PHP has a very funky method: SetClass() that assigns a defined class as a class exposed by a webservice (or multiple classes, need wsdl file though).
Any way, the question: Does this functionality allow for maintaining state.
For example when I call method 'foo' it will set some class variables and then return something. After that I want to access method 'bar' and retrieve those class variables that were set in 'foo'.
As far as I know it could not maintain state (yes, I tried). But would be interested to know if there is a way of doing this. I noticed some PHP SOAP cache variables , but dont think thats it.
Also, does anyone know of a small app/webb app (for Linux) that will build a WSDL file given a class or a set of methods, etc.
SergI've started looking for ways of serving PHP5 based webservices .. and found this today .. quite new but might help you in creating wsdl ..
<!-- m --><a class="postlink" href="http://thinkforge.org/frs/?group_id=34&release_id=54No">http://thinkforge.org/frs/?group_id=34&release_id=54No</a><!-- m --> help to you.. sorry.. but I made a WSDL generator for php based soap server for Windows.
<!-- m --><a class="postlink" href="http://monkeytroy.com/software/phpwsdlgen/phpwsdlgen.php">http://monkeytroy.com/software/phpwsdlg ... sdlgen.php</a><!-- m -->
May be able to help someone else looking for wsdl gen for php5.The SoapServer->setPersistence() method may help you out.
Any way, the question: Does this functionality allow for maintaining state.
For example when I call method 'foo' it will set some class variables and then return something. After that I want to access method 'bar' and retrieve those class variables that were set in 'foo'.
As far as I know it could not maintain state (yes, I tried). But would be interested to know if there is a way of doing this. I noticed some PHP SOAP cache variables , but dont think thats it.
Also, does anyone know of a small app/webb app (for Linux) that will build a WSDL file given a class or a set of methods, etc.
SergI've started looking for ways of serving PHP5 based webservices .. and found this today .. quite new but might help you in creating wsdl ..
<!-- m --><a class="postlink" href="http://thinkforge.org/frs/?group_id=34&release_id=54No">http://thinkforge.org/frs/?group_id=34&release_id=54No</a><!-- m --> help to you.. sorry.. but I made a WSDL generator for php based soap server for Windows.
<!-- m --><a class="postlink" href="http://monkeytroy.com/software/phpwsdlgen/phpwsdlgen.php">http://monkeytroy.com/software/phpwsdlg ... sdlgen.php</a><!-- m -->
May be able to help someone else looking for wsdl gen for php5.The SoapServer->setPersistence() method may help you out.