510 CHAPTER 20 WEB SERVICES $soapserver->handle(); setClass() (Web design programs)

510 CHAPTER 20 WEB SERVICES $soapserver->handle(); setClass() void SoapServer->setClass (string class_name [, mixed args]) Although the addfunction() method works fine for adding functions, what if you want to add class methods? This task is accomplished with the setClass() method, with the class_name parameter specifying the name of the class, and the optional args parameter specifying any arguments that will be passed to a class constructor. Let s create a class for the boxing quote service, and export its methods using setClass(): setClass(”boxingQuotes”); $soapserver->handle(); ?> The decision to use setClass() instead of addFunction() is irrelevant to any requesting clients. setPersistence() void SoapServer->setPersistence (int mode) One really cool feature of the SOAP extension is the ability to persist objects across a session. This is accomplished with the setPersistence() method. This method only works in conjunction with setClass(). Two modes are accepted:
Note: In case you are looking for affordable and reliable webhost to host and run your j2ee application check Vision J2ee Web Hosting services.

Leave a Reply