Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5419

Wrong constant used in configuring AxisOperation in the Utils class

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • 1.6.2
    • None
    • deployment

    Description

      org.apache.axis2.deployment.util.Utils class:

      public static AxisOperation getAxisOperationForJmethod(Method method)
      throws AxisFault {
      AxisOperation operation;
      if ("void".equals(method.getReturnType().getName())) {
      if (method.getExceptionTypes().length > 0)

      { operation = AxisOperationFactory .getAxisOperation(WSDLConstants.MEP_CONSTANT_IN_OUT); }

      //code continues here...

      In our case we have a void method, which throws an AxisFault. So when constructing the wsdl it goes inside this "if", becomes an InOutAxisOperation and has otput tag, which has null namespace.

      This is not desirable, so the constant should be MEP_CONSTANT_ROBUST_IN_ONLY

      With this changed the wsdl is okay.

      Attachments

        Activity

          People

            Unassigned Unassigned
            petkova.kristina Kristina Petkova
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: