WildFly10  
Suche: 

Kinder

Informatik und Computer

Elektronik

Segeln

Musik

Lego

Kochen

4x4 Wohnmobil

4x4 Wohnmobil V2.0

Bootsanhänger

Andere Basteleien

Linksammlung

Projekte

Merkzettel

Impressum


User
Password

Wildfly 10

Konfigurationen

Nutzung der admin-console

Service parametrieren

HTTPS

Webservice

TODO:

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>
...

Linksammlung

Eigene Links:

externe Links: