Web design portfolio - CHAPTER 20 WEB SERVICES WSDL generation
CHAPTER 20 WEB SERVICES WSDL generation and importing: NuSOAP will generate a WSDL document corresponding to a published Web Service and can import a WSDL reference for use within a NuSOAP client. A proxy class: NuSOAP can generate a proxy class that allows for the remote methods to be called as if they were local. HTTP proxying: For varying reasons (security and auditing are two), some clients are forced to delegate a request to an HTTP proxy, which in turn performs the request on the client s behalf. That said, any SOAP request would need to pass through this proxy rather than directly query the service server. NuSOAP offers basic support for specifying this proxy server. SSL: NuSOAP supports secure communication via SSL if the CURL extension is made available via PHP. All of these features are discussed in further detail throughout this section. For starters, however, you need to install NuSOAP. This simple process is introduced next. Note NuSOAP was originally known as SOAPx4, and in fact is a rewrite of the original project. The name was changed in accordance with an agreement by the project author (Dietrich Ayala) and the company NuSphere, which had at one point sponsored development. Installing NuSOAP Installing NuSOAP is really a trivial affair, done in three steps: 1. Download the latest stable distribution from http://dietrich.ganx4.com/nusoap/. 2. Extract the package contents to a location convenient for inclusion from a PHP script. Consider placing third-party classes within an aptly named directory located within the PHP_INSTALL_DIR/includes/ directory this is for convenience reasons only, and isn t a requirement. 3. Include the NuSOAP class (nusoap.php) within your script: require(’nusoap/nusoap.php’); That s it! You re ready to begin using NuSOAP. Caution At the time of writing, there was a naming conflict between the NuSOAP class and that found in PHP 5 s native SOAP extension (introduced later in this chapter). While the intention of introducing NuSOAP is to offer those readers not yet running PHP 5 the opportunity to take advantage of SOAP-driven Web services, if for some reason you prefer to use NuSOAP over the SOAP extension, you ll need to disable the native extension.
Note: If you are looking for cheap and reliable webhost to host and run your mysql application check mysql web server services.