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] Commented: (AXIS2-2783) Better checking for overloaded operations in AxisService addMessageElementQNameToOperationMapping()
Date Thu, 07 Jun 2007 18:38:26 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-2783?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12502463
] 

Davanum Srinivas commented on AXIS2-2783:
-----------------------------------------

Jarek,

will this work? 

    public void addMessageElementQNameToOperationMapping(QName messageElementQName,
                                                         AxisOperation operation) {
        // when setting an operation we have to set it only if the messegeElementQName does
not
        // exists in the map.
        // does exists means there are two or more operations which has the same input element
(in doc/literal
        // this is possible. In this case better to set it as null without giving
        // a random operation.
        Object key = messageElementQNameToOperationMap.get(messageElementQName);
        if (key != null  && key != operation){
            messageElementQNameToOperationMap.put(messageElementQName,null);
        } else {
            messageElementQNameToOperationMap.put(messageElementQName, operation);
        }

    }


> Better checking for overloaded operations in AxisService addMessageElementQNameToOperationMapping()
> ---------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-2783
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2783
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: jaxws
>            Reporter: Jarek Gawor
>         Attachments: AXIS2-2783.patch
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
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