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

Vincent Zurczak made changes - Thu, 26 Apr 2012 - 13:12:31 +0200
Field Original Value New Value
Status New [ 10000 ] Open [ 10002 ]
Priority Major [ 3 ]
Vincent Zurczak made changes - Thu, 26 Apr 2012 - 13:12:34 +0200
Status Open [ 10002 ] In Progress [ 10003 ]
Vincent Zurczak made changes - Thu, 26 Apr 2012 - 13:13:25 +0200
Status In Progress [ 10003 ] Resolved [ 10004 ]
Fix Version/s 2.4 [ 10360 ]
Resolution Fixed [ 1 ]
Vincent Zurczak made changes - Thu, 26 Apr 2012 - 13:13:30 +0200
Status Resolved [ 10004 ] Closed [ 10005 ]

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