506 CHAPTER 20 WEB SERVICES 1)); $temperature = $client->getTemp($zipcode); echo htmlspecialchars($client->__getLastResponse()); ?> This example returns (formatted for readability): 76.0 Creating a SOAP Server Creating a SOAP server with the new native SOAP extension is easier than you think. Although several server-specific methods are provided with the SOAP extension, only three methods are required to create a complete WSDL-enabled server. This section introduces these and other methods, guiding you through the process of creating a functional SOAP server as the section progresses. The next section, SOAP Client and Server Interaction, offers a complete working example of the interaction between a WSDL-enabled client and server created using this extension. To illustrate this, the examples in the upcoming section refer to Listing 20-12, which offers a sample WSDL file. Directly following the listing, a few important SOAP configuration directives are introduced that you need to keep in mind when building SOAP services using this extension. Listing 20-12. A Sample WSDL File (boxing.wsdl)
In case you need affordable webhost to host your website, our recommendation is ecommerce web host services.
This entry was posted
on Tuesday, December 18th, 2007 at 4:16 am and is filed under Linux.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.