title: How to create and test a SOAP and HTTP web service in Java, Maven, and Spring
body: <p>Essentially I am trying to create a simple SOAP Webservice in Java, Maven, and Spring.
  I have tried following tutorials, books, and just hacking at it. Can anyone help please.</p>
  
  <p><strong>Background</strong>  </p>
  
  <ul>
  <li>We have a project which is effectively a bunch of libraries boiling
  to a handful of interfaces.</li>
  <li>The project is a maven project created using the spring framework,
  mainly roo.</li>
  <li>We're running the STS eclipse IDE which has a vmware (vSphere)
  virtual web server.</li>
  </ul>
  
  <p><strong>What I'm trying to achieve</strong></p>
  
  <ul>
  <li>Add web services for SOAP and HTTP endpoints.</li>
  <li>Have existing WSDLs for these web services.</li>
  </ul>
  
  <p><strong>What I have tried:</strong></p>
  
  <p><strong>1. Creating a web service with "Top down Java bean Web Service" type pointing to the wsdl, VMware server.</strong> </p>
  
  <ul>
  <li>Creates a web service project separate from my existing project.</li>
  <li>Web Service seems to be synchronised in the virtual web server.</li>
  <li>Right clicking to the home page for the web server results in the 404 error.</li>
  <li>Looking at the localhost:8080 shows a running virtual web server page.</li>
  </ul>
  
  <p><em>Problems:</em></p>
  
  <ul>
  <li>Project created is in the eclipse workspace rather than the source folders. This results in source control commitment issues.</li>
  <li>Is it normal for all web services to be a separate project per web service in eclipse?</li>
  <li>Right clicking to the home page for the web server results in the 404 error.</li>
  <li>Not sure how to debug the 404 error to determine the issue.</li>
  </ul>
  
  <p><br>
  <strong>2. Created an SomeNameEndpoint.java file and generated a web service project from this.</strong></p>
  
  <ul>
  <li>Creates a web service project separate from my existing project.</li>
  <li>Web Service seems to be synchronised in the virtual web server.</li>
  <li>Right clicking to the home page for the web server results in the 404 error.</li>
  <li><p>Looking at the localhost:8080 shows a running virtual web server page.</p>
  
  <pre><code>package shlonline.integration.endpoints;
  
  import javax.jws.WebMethod;
  import javax.jws.WebService;
  
  import org.springframework.web.context.support.SpringBeanAutowiringSupport;
  
  @WebService(serviceName = "myServiceName")
  public class myServiceEndPoint extends SpringBeanAutowiringSupport
  {
      @WebMethod
      public boolean runWebMethod(String input)
      {
          return false;
      }
  }
  </code></pre></li>
  </ul>
  
  <p><em>Problems:</em></p>
  
  <ul>
  <li>Right clicking to the home page for the web server results in the 404 error.</li>
  <li>Not sure how to debug the 404 error to determine the issue.</li>
  </ul>