Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-274

Tools should handle the JSR 181 @WebService annotation specified on an interface

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • jbossws-1.0RC3
    • None
    • tools-jaxrpc
    • None
    • Documentation (Ref Guide, User Guide, etc.)

      @WebService annotation can mark an interface as the SEI. Tools will get the name of the interface that is annotated and will then use reflection on the interface to obtain all the methods that have the @WebMethod annotation to expose as the methods that are part of the SEI contract.

      A question I have is:

      @WebService
      public interface MyService
      {
      @WebMethod
      public void handleOrder(String id) throws RemoteException;

      public String getId() throws RemoteException;
      }

      In the above declaration, the method, getId() does not have a @WebMethod annotation. Is it legal to have only a subset of methods declare @WebMethod and others not? If yes, what should be the behavior? Should tools take all public methods, as the JAXRPC 1.1 Spec says and ignore the @WebMethod annotation.

              Unassigned Unassigned
              anil.saldhana Anil Saldanha (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: