title: Web Service not working
body: <p>I am new to PHP, and don't know much about the web services, but I have written a code snippet in PHP, but it is not showing the output, can any body help please?</p>
  
  <p>Here is the code:</p>
  
  <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"/&gt;
  &lt;title&gt;PHP NuSoap Shakespeare Client&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;h3&gt;PHP program to access the Shakespeare web service.&lt;/h3&gt;
  &lt;?php
  require_once('lib/nusoap.php');
  $request = array('Request'=&gt; 'Winter of our discontent');
  $wsdl="http://www.xmlme.com/WSShakespeare.asmx?wsdl";
  $soapClient = new soapclient($wsdl, true);
  $result = $soapClient-&gt;call
          (
                'Get Speech',
                $request,
                'http://xmlme.com/WebServices',
                'http://xmlme.com.WebServices/GetSpeech');
  echo '&lt;h2&gt;Shakespeare Web Service Response from a PHP Client&lt;/h2&gt;';
  echo '&lt;h2&gt;PHP Array Response&lt;/h2&gt;';
  print_r($result);
  echo '&lt;h2&gt;Request&lt;/h2&gt;';
  echo '&lt;pre&gt;'.htmlspecialchars($soapClient-&gt;request, ENT_QUOTES).'&lt;/pre&gt;';
  echo '&lt;h2&gt;Response&lt;/h2&gt;';
  echo '&lt;pre&gt;'.htmlspecialchars($soapClient-&gt;response, ENT_QUOTES).'&lt;/pre&gt;';
  ?&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>