Yahoo web space - CHAPTER 20 WEB SERVICES SOAP_PERSISTENCE_REQUEST: This

CHAPTER 20 WEB SERVICES SOAP_PERSISTENCE_REQUEST: This mode specifies that PHP s session-handling feature should be used to persist the object. SOAP_PERSISTENCE_SESSION: This mode specifies that the object is destroyed at the end of the request. SOAP Client and Server Interaction Now that you re familiar with the basic premises of using this extension to create both SOAP clients and servers, this section presents an example that simultaneously demonstrates both concepts. This SOAP service retrieves a famous quote from a particular boxer, and that boxer s last name is requested using the exposed getQuote()method. It s based on the boxing.wsdlfile shown in Listing 20-12. Let s start with the server. Boxing Server The boxing server is simple but practical. Extending this to connect to a database server would be a trivial affair. Let s consider the code: setClass(”boxingQuotes”); $soapserver->handle(); ?> The client, introduced next, will consume this service. Boxing Client The boxing client consists of just two lines, the first instantiating the WSDL-enabled SoapClient() class, and the second executing the exposed method getQuote(), passing in the parameter “Ali”:
Go visit our java server pages services for a reliable, lowcost webhost to satisfy all your needs.

Leave a Reply