Java-to-WSDL

Inherited Methods are not supported

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.3
  • Fix Version/s: 2.4
  • Component/s: None
  • Security Level: Public
  • Description:
    Hide
    • Create an EJB project.
    • Add some methods in the local interface.
    • Create a remote interface that extends the local one but adds no method.

    Use the Java to WSDL library (currently based on EasyWSDL) to generate a WSDL from the remote interface.
    The WSDL contains not operation.

    This is because the implementation uses Class#getDeclaredMethods() which only gets the methods from the current class (and all the methods) except the inherited ones. We should only get the public methods, from the current class and the super classes.

    Therefore, we should use Class#getMethods().

    Show
    • Create an EJB project.
    • Add some methods in the local interface.
    • Create a remote interface that extends the local one but adds no method.
    Use the Java to WSDL library (currently based on EasyWSDL) to generate a WSDL from the remote interface. The WSDL contains not operation. This is because the implementation uses Class#getDeclaredMethods() which only gets the methods from the current class (and all the methods) except the inherited ones. We should only get the public methods, from the current class and the super classes. Therefore, we should use Class#getMethods().
  • Environment:
    -

Activity

People

Dates

  • Created:
    Wed, 25 Apr 2012 - 12:16:25 +0200
    Updated:
    Thu, 26 Apr 2012 - 13:13:30 +0200
    Resolved:
    Thu, 26 Apr 2012 - 13:13:25 +0200