XFire
  1. XFire
  2. XFIRE-546

@WebMethod ignored - all methods is visible from webservice

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.1.2
    • Fix Version/s: None
    • Component/s: Annotations
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Annotation @WebMethod is totaly ignored.
      Now all methods starting with 'get' is visible from webservice.

        Activity

        Hide
        Edina Pimp added a comment -

        I think the spec dictates this is an issue:

        >paste<
        If the implementation bean does not implement a service endpoint interface, all
        public methods other than those inherited from java.lang.Object will be exposed
        as Web Service operations. This behavior can be overridden by using the
        WebMethod annotation to specify explicitly those public methods that are to be
        exposed. If a WebMethod annotation is present, only the methods to which it is
        applied are exposed.

        Show
        Edina Pimp added a comment - I think the spec dictates this is an issue: >paste< If the implementation bean does not implement a service endpoint interface, all public methods other than those inherited from java.lang.Object will be exposed as Web Service operations. This behavior can be overridden by using the WebMethod annotation to specify explicitly those public methods that are to be exposed. If a WebMethod annotation is present, only the methods to which it is applied are exposed.
        Hide
        Cliff Meyers added a comment -

        This is especially problematic when your service class extends another class with a large number of methods. The workaround involves overriding every method in the class with a call to super in the implementation and then annotating each method with @WebMethod(exclude=true). Is this bug scheduled to be fixed any time soon?

        Show
        Cliff Meyers added a comment - This is especially problematic when your service class extends another class with a large number of methods. The workaround involves overriding every method in the class with a call to super in the implementation and then annotating each method with @WebMethod(exclude=true). Is this bug scheduled to be fixed any time soon?
        Hide
        Jara Cesnek added a comment -

        Can I ask Dan if he feel this as issue and will fix it ?
        Or definitely no and I should fix it myself ?

        Waiting for this long time and nothing happens.

        Sorry for bitching )

        Show
        Jara Cesnek added a comment - Can I ask Dan if he feel this as issue and will fix it ? Or definitely no and I should fix it myself ? Waiting for this long time and nothing happens. Sorry for bitching )
        Hide
        Cliff Meyers added a comment -

        What Jara said, x2

        Show
        Cliff Meyers added a comment - What Jara said, x2
        Hide
        tsc added a comment -

        Is there any plan to fix this bug?

        Has this issue been fixed in CXF version 2.0.3?

        Show
        tsc added a comment - Is there any plan to fix this bug? Has this issue been fixed in CXF version 2.0.3?

          People

          • Assignee:
            Dan Diephouse
            Reporter:
            Jara Cesnek
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated: