2 Replies Latest reply on Mar 19, 2009 8:55 AM by aubertinp.philippe.aubertin.logica.com

    Web Service in war project

    aubertinp.philippe.aubertin.logica.com

      Hi!


      I try to deploy a web service in a WAR project.


      I can't find any information where to put my files and what I have to configure.


      I tried to put the standard-jaxws-endpoint-config.xml in the src/main/META-INF directory and the webservice in src/main


      my webservice:


      import javax.ejb.Stateless;
      import javax.jws.WebMethod;
      import javax.jws.WebService;
      
      import org.jboss.seam.Component;
      import org.jboss.seam.annotations.Name;
      import org.jboss.seam.annotations.security.Restrict;
      import org.jboss.seam.security.Identity;
      import org.jboss.wsf.spi.annotation.WebContext;
      
      @Stateless
      @Name("auctionService")
      @WebContext(contextRoot="/services")
      @WebService(name = "AuctionService", serviceName = "AuctionService")
      public class AuctionService implements AuctionServiceRemote
      {           
         @WebMethod
         public boolean login(String username, String password)
         {
            Identity.instance().setUsername(username);
            Identity.instance().setPassword(password);
            Identity.instance().login();
            return Identity.instance().isLoggedIn();
         }
         
         @WebMethod
         public boolean logout()
         {
            Identity.instance().logout();
            return !Identity.instance().isLoggedIn();
         }
         
       
         
       
      }



      and the interface:


      import javax.ejb.Remote;
      
      @Remote
      public interface AuctionServiceRemote
      {
         boolean login(String username, String password);
         boolean logout();
         
      }
      


      I get not error but no web services have been deployed!
      I try to figure out the issue in my web.xml but I do not anderstand what I have to change in that file.


      Thank for any help,
      Best regards!


      aubertinp