You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Davanum Srinivas (JIRA)" <ji...@apache.org> on 2007/06/07 20:38:26 UTC

[jira] Commented: (AXIS2-2783) Better checking for overloaded operations in AxisService addMessageElementQNameToOperationMapping()

    [ 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