axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davanum Srinivas (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2-852) Stub has checks for "rpc" and "document"
Date Mon, 26 Jun 2006 15:23:30 GMT
Stub has checks for "rpc" and "document"
----------------------------------------

         Key: AXIS2-852
         URL: http://issues.apache.org/jira/browse/AXIS2-852
     Project: Apache Axis 2.0 (Axis2)
        Type: Bug

    Reporter: Davanum Srinivas


Here's the snippet from Stub.java:

    protected OMElement getElement(SOAPEnvelope env, String type) {
        SOAPBody body = env.getBody();
        OMElement element = body.getFirstElement();

        if (WSDLConstants.STYLE_RPC.equals(type)) {
            return element.getFirstElement();    // todo this needs to be fixed
        } else if (WSDLConstants.STYLE_DOC.equals(type)) {
            return element;
        } else {
            throw new UnsupportedOperationException(Messages
                    .getMessage("unsupportedType"));
        }
    }


Do we need this? The previous bug AXIS2-843 was caused by this piece of code. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message