Kristina Petkova created AXIS2-5419:
---------------------------------------

             Summary: Wrong constant used in configuring axis operation
                 Key: AXIS2-5419
                 URL: https://issues.apache.org/jira/browse/AXIS2-5419
             Project: Axis2
          Issue Type: Bug
          Components: deployment
    Affects Versions: 1.6.2
            Reporter: Kristina Petkova
            Priority: Trivial


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.



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org
For additional commands, e-mail: java-dev-h...@axis.apache.org

Reply via email to