WildFly10 | ||||||
|
Wildfly 10KonfigurationenNutzung der admin-consoleService parametrierenHTTPS
WebserviceTODO: Spezifikation des Interfaces @WebService(targetNamespace = "http://www.lauerbach.com/beispiele/myWebserviceNamespace") public interface MyWebservice { @WebMethod public String aMethodeOfTheWebservice(); ... Implementierung des Services @WebService(serviceName = "nameOfTheWebservice", portName = "MyWebservice", name = "MyWebservice", endpointInterface = "{fully qualified Name of the interface class}", targetNamespace = "http://www.lauerbach.com/beispiele/myWebserviceNamespace") public class MyWebservice Impl implements MyWebservice { ... Die relevanten Ausschnitte aus der pom.xml für maven ... <packaging>war</packaging> ... ... <dependency> <groupId>org.jboss.spec.javax.servlet</groupId> <artifactId>jboss-servlet-api_3.1_spec</artifactId> <scope>provided</scope> </dependency> <!-- Import the Common Annotations API (JSR-250), we use provided scope as the API is included in WildFly --> <dependency> <groupId>org.jboss.spec.javax.annotation</groupId> <artifactId>jboss-annotations-api_1.2_spec</artifactId> <scope>provided</scope> </dependency> ... LinksammlungEigene Links:externe Links: |