506 CHAPTER (Starting a web site) 20 WEB SERVICES 1)); $temperature

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.

Leave a Reply