title: SOAP Example On JBOSS server
body: <p>I'm trying to deploy this exemple using Soap web Service on a JBOSS,
  I've the error that the page is not found when I try to access the URL (<a href="http://localhost:80/ServiceHelloWS" rel="nofollow noreferrer">http://localhost:80/ServiceHelloWS</a>)</p>
  
  <p>Interface ServiceHelloWS :</p>
  
  <pre><code>package com.service.ws;
  
  public interface ServiceHelloWS {
  
      public String sayHello();
  }
  </code></pre>
  
  <p>Implementation :</p>
  
  <pre><code>package com.service.ws;
  import javax.ejb.Stateless;
  import javax.jws.WebService;
  @WebService
  @Stateless
  public class ServiceHelloWSImpl implements ServiceHelloWS{
  
      @Override
      public String sayHello() {
          return "Hello";
      }
  }
  </code></pre>
  
  <p>Publishing Class:</p>
  
  <pre><code>package com.service.pub;
  import javax.xml.ws.Endpoint;
  import com.service.ws.*;
  
  public class SoapWSpub {
      public static void main(String[] args) {
         Endpoint.publish("http://localhost:80/ServiceHelloWS", new ServiceHelloWSImpl());
      }
  }
  </code></pre>
  
  <p>Thanks</p>