The entirety of Apache CXF Web Services is at your fingertips, using modules and buildable in JLink.
Web Services are controlled through the WSContext
class.
That's right, Rest and Web Services use a single library!
<dependency> <groupId>com.guicedee.servlets</groupId> <artifactId>guiced-web-services</artifactId> </dependency>
requires com.guicedee.guicedservlets.webservices; opens my.package.ws to com.google.guice, org.apache.cxf;
WSContext.baseWSUrl = "/WebServices";
@WebService(name = "SimpleWebService") public class SimpleWebService { public static void main(String args[]) { Undertow ud = GuicedUndertow.boot("localhost", 6004); } public String sayHello(String name) { return "Hello, " + name + "!"; } }
How easy is that?!?
Your WSDL is available at http://localhost:6004/WebServices/SimpleWebService?WSDL