[ http://issues.apache.org/jira/browse/AXIS2-852?page=all ]

Ajith Harshana Ranabahu resolved AXIS2-852.
-------------------------------------------

    Resolution: Fixed

Done - the generated code is modified  not to use this method and the method is 
removed from the stub base class


> 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)
>          Issue Type: Bug
>            Reporter: Davanum Srinivas
>         Assigned To: Ajith Harshana Ranabahu
>
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to