title: Spring Boot Soap Web-Service (Java) - code first?
body: <p>I want to make a SpringBoot Application in Java with the following Soap Web-Service:</p>
  
  <pre><code>@WebService
  public class HelloWorld
  {
      @WebMethod
      public String sayHello(String name)
      {
          return "Hello world, " + name;
      }
  }
  </code></pre>
  
  <p>I want to get the WSDL...
  I think I have to create endpoints or mapping the service? How can I do that?</p>
  
  <p>Without spring-boot it works, because the file in the WEB-INF folder with the code:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;endpoints xmlns='http://java.sun.com/xml/ns/jax-ws/ri/runtime' version='2.0'&gt;
      &lt;endpoint name='HelloWorld' implementation='web.service.soap.HelloWorld' url-pattern='/HelloWorld'/&gt;
  &lt;/endpoints&gt;
  </code></pre>
  
  <p>and</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;servlet&gt;
          &lt;servlet-name&gt;jaxws-servlet&lt;/servlet-name&gt;
          &lt;servlet-class&gt;com.sun.xml.ws.transport.http.servlet.WSServlet&lt;/servlet-class&gt;
      &lt;/servlet&gt;
  
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;jaxws-servlet&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  </code></pre>