title: In-process SOAP service server for Java
body: <p>OK, I am developing a program which will be deployed to lots of machines (Windows, Linux, AIX, z/Linux, openVMS, etc.).  I want that application to contain a SOAP web service, but I don't want to bundle tomcat or run a separate service for the services (I want them in the same process as the rest of the application).</p>
  
  <p>Basically what I'm looking for is something where I can define a class (say <code>WebServices</code>).  I'm OK with writing WSDL or any other kind of service description as well.  The I want something like this:</p>
  
  <pre><code>SOAPServer server = makeMeASoapServer();
  //do config on the server
  server.add(new WebService(...));
  server.listen(port);
  </code></pre>
  
  <p>Obviously the names and parameters will be different.</p>
  
  <p>I've been looking at Axis, and it seems like it provides this, but I don't know what classes I need to use.  Am I crazy in wanting this kind of behavior?  I can't believe more people aren't looking for this, I do this all the time with embedded web services within .NET clients.</p>