package com.JBWS2565.server;

import javax.annotation.security.PermitAll;
import javax.ejb.Stateless;
import javax.jws.WebMethod;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import org.jboss.wsf.spi.annotation.WebContext;

@Stateless
@WebService(name = "MyWebService", targetNamespace = "http://my.services.web", serviceName = "MyWebServiceName")
@WebContext(contextRoot = "/MyEar", transportGuarantee = "NONE", authMethod = "NONE")
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.WRAPPED, style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL)
@PermitAll
public final class MyWebServiceBean {

    @WebMethod
    @PermitAll
    public final String doStuff() {
        return "i've done stuff";
    }
}