title: PHP SOAP Client for Java Web Service
body: <p>I have built a wsdl using Java's web services and an running it on localhost(wamp). I am trying to create a PHP SoapClient for the wsdl but it says 'Extra content at the end of the document'. But when I try to run the service using a Java Client or a .NEt Client it runs the wsdl.</p>
  
  <p>I've tried searching it on the net but still couldn't find the problem. Please help.</p>
  
  <p>Here's how I am creating the SoapClient:</p>
  
  <pre><code>$client = new SoapClient('http://localhost/path/to/ServiceSever?wsdl', array('trace' =&gt; 1));
  </code></pre>
  
  <p>I've also tried to run it by creating a SoapServer and then create a client from it:</p>
  
  <pre><code>$server = new SoapServer('http://localhost/path/to/ServiceSever?wsdl');
  $server-&gt;addFunction('getinfos');
  $server-&gt;handle();
  </code></pre>