title: Java-config counterpart of wss:binding?
body: <p>Ok, so here's something I've been googling for for hours with no success... Finally i can only hope some Spring-magician reads and answers this question. :)</p>
  
  <p>I'm upgrading an old web application (Spring 2.x-based) to Spring 4.2.x and while adding new features I've decided to completely move away from XML-based config. (Again: i don't want to have any Spring XML files in the project!)</p>
  
  <p>I've converted pretty much everything, but the last thing i can't resolve is finding the correct Java-config counterpart of:</p>
  
  <pre><code>&lt;ws:service id="MySoapService" bean="#ServiceImpl" /&gt;
  &lt;wss:binding service="#MySoapService" url="/1.0/soap" /&gt;
  </code></pre>
  
  <p>ws/wss namespaces come from:</p>
  
  <pre><code>xmlns:ws="http://jax-ws.dev.java.net/spring/core"
  xmlns:wss="http://jax-ws.dev.java.net/spring/servlet"
  </code></pre>
  
  <p>So what i'm trying to do is exporting <code>@WebService</code> annotated classes, but with Java-config instead of XML.</p>
  
  <p>Additional infos: </p>
  
  <ul>
  <li><p>I've tried using <code>SimpleJaxWsServiceExporter</code>, but that one leaves me with a "java.net.BindException: Address already in use: bind", regardless of what port i'm using...</p></li>
  <li><p>The application has two servlets: one is a normal Spring MVC Dispatcher for the new REST API and another <code>com.sun.xml.ws.transport.http.servlet.WSSpringServlet</code> which should make the above mentioned JAX-WS service available.</p></li>
  <li><p>I'm trying to resolve things with pure JAX-WS RI, no CXF or any other library. The application is huge enough already... :(</p></li>
  </ul>