Lastly Table 2 shows a code snippet for publishing a quote stock web service through SOAP support in PHP. The location of the WSDL file is specified in the argument of the SoapServer construct. In publishing, you can simply locate the PHP script in an appropriate web directory. Unlike Java, no service description file and
compilation are required, nor is it necessary to generate stub code. A developer can simply register a handler function to a SoapServer. Meanwhile, it is also straightforward to write client side code. You can simply obtain the result as demonstrated by the following PHP code fragment.