How to programmatically publish webservice to tomcat
<p>I would like to publish a webservice <strong>programmatically</strong> to tomcat.<br>
With e.g JAX-WS or Apache CXF<br>
Similar to <code>Endpoint.publish(...)</code>.<br></p>

<pre><code>//how to tell this tomcat?
Endpoint.publish("http://0.0.0.0:8080/SimpleService", serviceImpl);
//or better something like this:
Endpoint.publish("/SimpleService", serviceImpl);
</code></pre>

<p>Without need to use <code>web.xml</code> and/or <code>sun-jaxws.xml</code> (for each service)</p>

<p><strong>Question:</strong><br>
Is there any known way to accomplish it (with JAX-WS or Apache CXF or ...)?</p>

<p>(I know there are similar questions already posted. But none of them really answers my question.)</p>