Publish a WebService from a POJA with Java 6
An article demonstrating a neat Java 6 SE feature: publishing a SOAP web service from a standalone application. This may be quite useful for prototyping, testing, building slim gateways that expose a WS on the outside and connect to an internal JVM process on the inside without the need for a full blown container. How can this be done? using the magical @WebService annotation and a call to Endpoint.publish(url, serviceObj). Ooops! I've ruined the surprise.