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/07/18 07:50:04 UTC

[jira] Created: (AXIS2-2982) Property visibility issues

Property visibility issues
--------------------------

                 Key: AXIS2-2982
                 URL: https://issues.apache.org/jira/browse/AXIS2-2982
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: jaxws
            Reporter: Jarek Gawor


Certain properties like the HTTP_STATUS_CODE or HTTP_HEADERS are set on the kernel MessageContext using setProperty() method. That method stores the properties in the "properties" map of the AbstractContext. Now, the jaxws MessageContext implementation of the setProperty() (and other relevant methods) delegate the calls to the Options object of the kernel MessageContext. That means, if for example HTTP_STATUS_CODE is looked up via getProperty() method of the jaxws MessageContext the value will not be found (because the value is not stored in the Options object).

One easy way to fix this is to change the jaxws MessageContext.getProperty() implementation to directly call kernel MessageContext.getProperty() method. The kernel's MessageContext.getProperty() first looks up the value in the AbstractContext and if it can't find it there, it next looks up the value in the Options object. 






-- 
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-2982) Property visibility issues

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

Jarek Gawor commented on AXIS2-2982:
------------------------------------

I updated the AddNumbersTests test case to check if the HTTP Request/Response/Response code properties are properly set and exposed to the service and a client.


> Property visibility issues
> --------------------------
>
>                 Key: AXIS2-2982
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2982
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: jaxws
>            Reporter: Jarek Gawor
>
> Certain properties like the HTTP_STATUS_CODE or HTTP_HEADERS are set on the kernel MessageContext using setProperty() method. That method stores the properties in the "properties" map of the AbstractContext. Now, the jaxws MessageContext implementation of the setProperty() (and other relevant methods) delegate the calls to the Options object of the kernel MessageContext. That means, if for example HTTP_STATUS_CODE is looked up via getProperty() method of the jaxws MessageContext the value will not be found (because the value is not stored in the Options object).
> One easy way to fix this is to change the jaxws MessageContext.getProperty() implementation to directly call kernel MessageContext.getProperty() method. The kernel's MessageContext.getProperty() first looks up the value in the AbstractContext and if it can't find it there, it next looks up the value in the Options object. 

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


Re: [jira] Resolved: (AXIS2-2982) Property visibility issues

Posted by Glen Daniels <gl...@thoughtcraft.com>.
> I changed the code to us getProperty() instead of getOptions().getProperty().

+1, Jarek.

--Glen

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


[jira] Resolved: (AXIS2-2982) Property visibility issues

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

Jarek Gawor resolved AXIS2-2982.
--------------------------------

    Resolution: Fixed

I changed the code to us getProperty() instead of getOptions().getProperty().

Committed revision 557159.


> Property visibility issues
> --------------------------
>
>                 Key: AXIS2-2982
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2982
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: jaxws
>            Reporter: Jarek Gawor
>
> Certain properties like the HTTP_STATUS_CODE or HTTP_HEADERS are set on the kernel MessageContext using setProperty() method. That method stores the properties in the "properties" map of the AbstractContext. Now, the jaxws MessageContext implementation of the setProperty() (and other relevant methods) delegate the calls to the Options object of the kernel MessageContext. That means, if for example HTTP_STATUS_CODE is looked up via getProperty() method of the jaxws MessageContext the value will not be found (because the value is not stored in the Options object).
> One easy way to fix this is to change the jaxws MessageContext.getProperty() implementation to directly call kernel MessageContext.getProperty() method. The kernel's MessageContext.getProperty() first looks up the value in the AbstractContext and if it can't find it there, it next looks up the value in the Options object. 

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