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 "Jarek Gawor (JIRA)" <ji...@apache.org> on 2007/06/07 20:21:25 UTC

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

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




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


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

Posted by "Jarek Gawor (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2783?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12502465 ] 

Jarek Gawor commented on AXIS2-2783:
------------------------------------

Yes, I think so.


> 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


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

Posted by "Jarek Gawor (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2783?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jarek Gawor updated AXIS2-2783:
-------------------------------

    Attachment:     (was: AXIS2-2783.patch)

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


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

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ 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


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

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2783?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davanum Srinivas resolved AXIS2-2783.
-------------------------------------

    Resolution: Fixed

thanks jarek, all the code should be in svn revision  545299

-- dims

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


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

Posted by "Jarek Gawor (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2783?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12502503 ] 

Jarek Gawor commented on AXIS2-2783:
------------------------------------

Actually, there is a small problem with this change. The null value here is used in this case to indicate that the same input element maps to two or more operations. Problem with map.get() is that it returns null whether the key is not present or the value of the key is null. So that's why containsKey() must be explicitly done. I'm attaching a new patch and a test case for it.


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


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

Posted by "Jarek Gawor (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2783?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jarek Gawor updated AXIS2-2783:
-------------------------------

    Attachment: AXIS2-2783.patch

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


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

Posted by "Jarek Gawor (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2783?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jarek Gawor updated AXIS2-2783:
-------------------------------

    Attachment: AXIS2-2783.patch

This patch fixes some of the "The endpoint reference (EPR) for the Operation not found" errors.


> 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