title: soap web service Endpoint publish
body: <p>I am implementing some soap based web-services, and I have some confusion on publishing the wsdl.</p>
  
  <p>Piece of code:</p>
  
  <pre><code>    public class HelloWorldPublisher{  
            public static void main(String[] args) {  
               Endpoint.publish("http://localhost:9999/ws/hello", new HelloWorldImpl());  
           }  
      }
  </code></pre>
  
  <p>Now, when I ran this, it generated WSDL, and I could access it using link:</p>
  
  <pre><code>http://localhost:9999/ws/hello?wsdl
  </code></pre>
  
  <p>How is this possible? There is no server listening on port 9999 and still I was able to get the wsdl.</p>
  
  <p>Any clarification would be great.</p>