I created the following three classes in a console application in Eclipse:

```
@WebService(endpointInterface = "uk.co.hello.Details")
public class DetailsImpl implements Details{
    public String getDetails() {

        return "Hello";
    }
}

@WebService
@SOAPBinding(style = Style.RPC)
public interface Details{

    @WebMethod String getDetails();
}

public class DetailsPublisher{

    public static void main(String[] args) {
       Endpoint endpoint = Endpoint.publish("http://localhost:9900/mytest", new DetailsImpl());
       System.out.println(endpoint.isPublished());
    }
}

```

Everything is fine and I can publish my web services and use it.

Now I created a web application and I want to do the same deploying my stuff on JBoss. Probably I don't need the main method anymore, but something else instead. Can someone give me an example on what I need to change in order to generate a working war?