title: How to generate wsdl
body: <p>I am working for the first time on SOAP. After going through various tutorials I have been able to create a small and simple soap server which offers two functions. Although I have been able to create the SOAP service and test it with a client I am not being able to understand WSDL even after going through the tutorials e.g. at <a href="http://www.w3schools.com/wsdl/wsdl_binding.asp" rel="nofollow">http://www.w3schools.com/wsdl/wsdl_binding.asp</a> . </p>
  
  <p>So how can I make this SOAP "wsdl soap" ?? Is there anyway way to autogenerate it in PHP? I don't mind writting it down manually provided I know what to write. Where do I put what code to make it "wsdl" ??</p>
  
  <pre><code>function geolocate(double $lat, double $lng)
  {
      $contents = file_get_contents('http://api.geonames.org/findNearby?lat='.$lat.'&amp;lng='.$lng.'&amp;username=imranomar');
      return $contents;
  }
  
  function describe(long $geonameid)
  {
      return file_get_contents('http://ws.geonames.org/get?geonameId='.$geonameid.'&amp;style=full');
  }
  
  $server = new SoapServer(null, array('uri' =&gt; "urn://localhost/firstmobile?wsdl"));
  $server-&gt;addFunction('geolocate');
  $server-&gt;addFunction('describe');
  $server-&gt;handle();
  </code></pre>
  
  <p><strong>Note: I cannot be using any framwork</strong></p>