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 "Serdar Badem (JIRA)" <ji...@apache.org> on 2007/06/06 19:10:26 UTC

[jira] Created: (AXIS2-2777) serviceClient.getOptions.setManageSession(true) option does not keep all the cookies / No way to access HTTP Transport headers in Axis2

serviceClient.getOptions.setManageSession(true) option does not keep all the cookies / No way to access HTTP Transport headers in Axis2
---------------------------------------------------------------------------------------------------------------------------------------

                 Key: AXIS2-2777
                 URL: https://issues.apache.org/jira/browse/AXIS2-2777
             Project: Axis 2.0 (Axis2)
          Issue Type: Improvement
          Components: transports
    Affects Versions: 1.2
         Environment: Windows XP Professional 
JDK1.5
Axis2 1.2
            Reporter: Serdar Badem


I am trying to use Axis2 to access some 3rd party web services which happens to use Set-Cookie in the HTTP Header (Which gets filled in once successfully authenticated) and manages the session that way.
Axis2 does not allow any way to access to the HTTP Header from the MessageContext. When I use the serviceClient.getOptions.setManageSession(true)  option it seems like this option only stores the selected items in the header :
HTTPConstants.HEADER_SET_COOKIE
HTTPConstants.HEADER_SET_COOKIE2

and ONLY the cookies with the following names: 
Constants.SESSION_COOKIE or
Constants.SESSION_COOKIE_JSESSIONID

which is very limited. We need a better way to support Cookies or more generically make the fields in the HTTP Header available to the client from the MessageContext.


-- 
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-2777) serviceClient.getOptions.setManageSession(true) option does not keep all the cookies / No way to access HTTP Transport headers in Axis2

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

Davanum Srinivas commented on AXIS2-2777:
-----------------------------------------

Serdar, can you please post a snippet of your http headers? so that we can understand the scenario better?

thanks,
dims

> serviceClient.getOptions.setManageSession(true) option does not keep all the cookies / No way to access HTTP Transport headers in Axis2
> ---------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-2777
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2777
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: transports
>    Affects Versions: 1.2
>         Environment: Windows XP Professional 
> JDK1.5
> Axis2 1.2
>            Reporter: Serdar Badem
>
> I am trying to use Axis2 to access some 3rd party web services which happens to use Set-Cookie in the HTTP Header (Which gets filled in once successfully authenticated) and manages the session that way.
> Axis2 does not allow any way to access to the HTTP Header from the MessageContext. When I use the serviceClient.getOptions.setManageSession(true)  option it seems like this option only stores the selected items in the header :
> HTTPConstants.HEADER_SET_COOKIE
> HTTPConstants.HEADER_SET_COOKIE2
> and ONLY the cookies with the following names: 
> Constants.SESSION_COOKIE or
> Constants.SESSION_COOKIE_JSESSIONID
> which is very limited. We need a better way to support Cookies or more generically make the fields in the HTTP Header available to the client from the MessageContext.

-- 
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] Issue Comment Edited: (AXIS2-2777) serviceClient.getOptions.setManageSession(true) option does not keep all the cookies / No way to access HTTP Transport headers in Axis2

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

Serdar Badem edited comment on AXIS2-2777 at 6/6/07 1:42 PM:
-------------------------------------------------------------

Hi Dims,
Lets say, you would like to use VMWare SDK using an Axis2 Client.
For authentication the VMWare web service has a cookie similar to :

Set-Cookie: vmware_soap_session="f6ce74d5-3a13-441b-95fe-958f7ea940c9"; Path=/;

Now, after the login operation for all the subsequent operations, I need to make sure my Web service requests contain the same "vmware_soap_session" cookie in the HTTP header.
Axis2 does not seem to provide any way to get this HTTP Header (I can see it in the IDE Debugger (_returnMessageContext.getProperty(org.apache.axis2.context.MessageContext.TRANSPORT_IN))) -> watcher -> method -> ResponseHeader )

If Axis2 would keep all the cookies  (Not only the JSESSIONID or the axis cookie ) when I set the setMaintainSession(true) that would make Axis2 usable with web services that are non-standard in their session management.

Please see the Blog: http://www.subbu.org/weblogs/main/2006/12/axis2_and_the_l.html that expalins the situation briefly.

Serdar Badem



 was:
Lets say, you would like to use VMWare SDK using an Axis2 Client.
For authentication the VMWare web service has a cookie similar to :

Set-Cookie: vmware_soap_session="f6ce74d5-3a13-441b-95fe-958f7ea940c9"; Path=/;

Now, after the login operation for all the subsequent operations, I need to make sure my Web service requests contain the same "vmware_soap_session" cookie in the HTTP header.
Axis2 does not seem to provide any way to get this HTTP Header (I can see it in the IDE Debugger (_returnMessageContext.getProperty(org.apache.axis2.context.MessageContext.TRANSPORT_IN))) -> watcher -> method -> ResponseHeader )

If Axis2 would keep all the cookies  (Not only the JSESSIONID or the axis cookie ) when I set the setMaintainSession(true) that would make Axis2 usable with web services that are non-standard in their session management.

Please see the Blog: http://www.subbu.org/weblogs/main/2006/12/axis2_and_the_l.html that expalins the situation briefly.

Serdar Badem


> serviceClient.getOptions.setManageSession(true) option does not keep all the cookies / No way to access HTTP Transport headers in Axis2
> ---------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-2777
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2777
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: transports
>    Affects Versions: 1.2
>         Environment: Windows XP Professional 
> JDK1.5
> Axis2 1.2
>            Reporter: Serdar Badem
>            Assignee: Deepal Jayasinghe
>
> I am trying to use Axis2 to access some 3rd party web services which happens to use Set-Cookie in the HTTP Header (Which gets filled in once successfully authenticated) and manages the session that way.
> Axis2 does not allow any way to access to the HTTP Header from the MessageContext. When I use the serviceClient.getOptions.setManageSession(true)  option it seems like this option only stores the selected items in the header :
> HTTPConstants.HEADER_SET_COOKIE
> HTTPConstants.HEADER_SET_COOKIE2
> and ONLY the cookies with the following names: 
> Constants.SESSION_COOKIE or
> Constants.SESSION_COOKIE_JSESSIONID
> which is very limited. We need a better way to support Cookies or more generically make the fields in the HTTP Header available to the client from the MessageContext.

-- 
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-2777) serviceClient.getOptions.setManageSession(true) option does not keep all the cookies / No way to access HTTP Transport headers in Axis2

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

Serdar Badem commented on AXIS2-2777:
-------------------------------------

Lets say, you would like to use VMWare SDK using an Axis2 Client.
For authentication the VMWare web service has a cookie similar to :

Set-Cookie: vmware_soap_session="f6ce74d5-3a13-441b-95fe-958f7ea940c9"; Path=/;

Now, after the login operation for all the subsequent operations, I need to make sure my Web service requests contain the same "vmware_soap_session" cookie in the HTTP header.
Axis2 does not seem to provide any way to get this HTTP Header (I can see it in the IDE Debugger (_returnMessageContext.getProperty(org.apache.axis2.context.MessageContext.TRANSPORT_IN))) -> watcher -> method -> ResponseHeader )

If Axis2 would keep all the cookies  (Not only the JSESSIONID or the axis cookie ) when I set the setMaintainSession(true) that would make Axis2 usable with web services that are non-standard in their session management.

Please see the Blog: http://www.subbu.org/weblogs/main/2006/12/axis2_and_the_l.html that expalins the situation briefly.

Serdar Badem


> serviceClient.getOptions.setManageSession(true) option does not keep all the cookies / No way to access HTTP Transport headers in Axis2
> ---------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-2777
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2777
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: transports
>    Affects Versions: 1.2
>         Environment: Windows XP Professional 
> JDK1.5
> Axis2 1.2
>            Reporter: Serdar Badem
>            Assignee: Deepal Jayasinghe
>
> I am trying to use Axis2 to access some 3rd party web services which happens to use Set-Cookie in the HTTP Header (Which gets filled in once successfully authenticated) and manages the session that way.
> Axis2 does not allow any way to access to the HTTP Header from the MessageContext. When I use the serviceClient.getOptions.setManageSession(true)  option it seems like this option only stores the selected items in the header :
> HTTPConstants.HEADER_SET_COOKIE
> HTTPConstants.HEADER_SET_COOKIE2
> and ONLY the cookies with the following names: 
> Constants.SESSION_COOKIE or
> Constants.SESSION_COOKIE_JSESSIONID
> which is very limited. We need a better way to support Cookies or more generically make the fields in the HTTP Header available to the client from the MessageContext.

-- 
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-2777) serviceClient.getOptions.setManageSession(true) option does not keep all the cookies / No way to access HTTP Transport headers in Axis2

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

Davanum Srinivas updated AXIS2-2777:
------------------------------------

    Assignee: Deepal Jayasinghe

> serviceClient.getOptions.setManageSession(true) option does not keep all the cookies / No way to access HTTP Transport headers in Axis2
> ---------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-2777
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2777
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: transports
>    Affects Versions: 1.2
>         Environment: Windows XP Professional 
> JDK1.5
> Axis2 1.2
>            Reporter: Serdar Badem
>            Assignee: Deepal Jayasinghe
>
> I am trying to use Axis2 to access some 3rd party web services which happens to use Set-Cookie in the HTTP Header (Which gets filled in once successfully authenticated) and manages the session that way.
> Axis2 does not allow any way to access to the HTTP Header from the MessageContext. When I use the serviceClient.getOptions.setManageSession(true)  option it seems like this option only stores the selected items in the header :
> HTTPConstants.HEADER_SET_COOKIE
> HTTPConstants.HEADER_SET_COOKIE2
> and ONLY the cookies with the following names: 
> Constants.SESSION_COOKIE or
> Constants.SESSION_COOKIE_JSESSIONID
> which is very limited. We need a better way to support Cookies or more generically make the fields in the HTTP Header available to the client from the MessageContext.

-- 
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-2777) serviceClient.getOptions.setManageSession(true) option does not keep all the cookies / No way to access HTTP Transport headers in Axis2

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

Davanum Srinivas resolved AXIS2-2777.
-------------------------------------

    Resolution: Fixed

Deepal added the following:
option.setOption(Constants.CUSTOM_COOKIE_ID)

in svn revison:
http://svn.apache.org/viewvc?view=rev&revision=551523

thanks,
dims

> serviceClient.getOptions.setManageSession(true) option does not keep all the cookies / No way to access HTTP Transport headers in Axis2
> ---------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-2777
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2777
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: transports
>    Affects Versions: 1.2
>         Environment: Windows XP Professional 
> JDK1.5
> Axis2 1.2
>            Reporter: Serdar Badem
>            Assignee: Deepal Jayasinghe
>
> I am trying to use Axis2 to access some 3rd party web services which happens to use Set-Cookie in the HTTP Header (Which gets filled in once successfully authenticated) and manages the session that way.
> Axis2 does not allow any way to access to the HTTP Header from the MessageContext. When I use the serviceClient.getOptions.setManageSession(true)  option it seems like this option only stores the selected items in the header :
> HTTPConstants.HEADER_SET_COOKIE
> HTTPConstants.HEADER_SET_COOKIE2
> and ONLY the cookies with the following names: 
> Constants.SESSION_COOKIE or
> Constants.SESSION_COOKIE_JSESSIONID
> which is very limited. We need a better way to support Cookies or more generically make the fields in the HTTP Header available to the client from the MessageContext.

-- 
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-2777) serviceClient.getOptions.setManageSession(true) option does not keep all the cookies / No way to access HTTP Transport headers in Axis2

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

Davanum Srinivas commented on AXIS2-2777:
-----------------------------------------

Point taken, that blog entry is irrelevent for this discussion. as vmware_soap_session is not supported by Axis1 either AFAIK.

thanks,
dims

> serviceClient.getOptions.setManageSession(true) option does not keep all the cookies / No way to access HTTP Transport headers in Axis2
> ---------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-2777
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2777
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: transports
>    Affects Versions: 1.2
>         Environment: Windows XP Professional 
> JDK1.5
> Axis2 1.2
>            Reporter: Serdar Badem
>            Assignee: Deepal Jayasinghe
>
> I am trying to use Axis2 to access some 3rd party web services which happens to use Set-Cookie in the HTTP Header (Which gets filled in once successfully authenticated) and manages the session that way.
> Axis2 does not allow any way to access to the HTTP Header from the MessageContext. When I use the serviceClient.getOptions.setManageSession(true)  option it seems like this option only stores the selected items in the header :
> HTTPConstants.HEADER_SET_COOKIE
> HTTPConstants.HEADER_SET_COOKIE2
> and ONLY the cookies with the following names: 
> Constants.SESSION_COOKIE or
> Constants.SESSION_COOKIE_JSESSIONID
> which is very limited. We need a better way to support Cookies or more generically make the fields in the HTTP Header available to the client from the MessageContext.

-- 
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] Issue Comment Edited: (AXIS2-2777) serviceClient.getOptions.setManageSession(true) option does not keep all the cookies / No way to access HTTP Transport headers in Axis2

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

Serdar Badem edited comment on AXIS2-2777 at 6/6/07 1:42 PM:
-------------------------------------------------------------

Hi Dims,
Thanks for your comment.
Lets say, you would like to use VMWare SDK using an Axis2 Client.
For authentication the VMWare web service has a cookie similar to :

Set-Cookie: vmware_soap_session="f6ce74d5-3a13-441b-95fe-958f7ea940c9"; Path=/;

Now, after the login operation for all the subsequent operations, I need to make sure my Web service requests contain the same "vmware_soap_session" cookie in the HTTP header.
Axis2 does not seem to provide any way to get this HTTP Header (I can see it in the IDE Debugger (_returnMessageContext.getProperty(org.apache.axis2.context.MessageContext.TRANSPORT_IN))) -> watcher -> method -> ResponseHeader )

If Axis2 would keep all the cookies  (Not only the JSESSIONID or the axis cookie ) when I set the setMaintainSession(true) that would make Axis2 usable with web services that are non-standard in their session management.

Please see the Blog: http://www.subbu.org/weblogs/main/2006/12/axis2_and_the_l.html that expalins the situation briefly.

Serdar Badem



 was:
Hi Dims,
Lets say, you would like to use VMWare SDK using an Axis2 Client.
For authentication the VMWare web service has a cookie similar to :

Set-Cookie: vmware_soap_session="f6ce74d5-3a13-441b-95fe-958f7ea940c9"; Path=/;

Now, after the login operation for all the subsequent operations, I need to make sure my Web service requests contain the same "vmware_soap_session" cookie in the HTTP header.
Axis2 does not seem to provide any way to get this HTTP Header (I can see it in the IDE Debugger (_returnMessageContext.getProperty(org.apache.axis2.context.MessageContext.TRANSPORT_IN))) -> watcher -> method -> ResponseHeader )

If Axis2 would keep all the cookies  (Not only the JSESSIONID or the axis cookie ) when I set the setMaintainSession(true) that would make Axis2 usable with web services that are non-standard in their session management.

Please see the Blog: http://www.subbu.org/weblogs/main/2006/12/axis2_and_the_l.html that expalins the situation briefly.

Serdar Badem


> serviceClient.getOptions.setManageSession(true) option does not keep all the cookies / No way to access HTTP Transport headers in Axis2
> ---------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-2777
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2777
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: transports
>    Affects Versions: 1.2
>         Environment: Windows XP Professional 
> JDK1.5
> Axis2 1.2
>            Reporter: Serdar Badem
>            Assignee: Deepal Jayasinghe
>
> I am trying to use Axis2 to access some 3rd party web services which happens to use Set-Cookie in the HTTP Header (Which gets filled in once successfully authenticated) and manages the session that way.
> Axis2 does not allow any way to access to the HTTP Header from the MessageContext. When I use the serviceClient.getOptions.setManageSession(true)  option it seems like this option only stores the selected items in the header :
> HTTPConstants.HEADER_SET_COOKIE
> HTTPConstants.HEADER_SET_COOKIE2
> and ONLY the cookies with the following names: 
> Constants.SESSION_COOKIE or
> Constants.SESSION_COOKIE_JSESSIONID
> which is very limited. We need a better way to support Cookies or more generically make the fields in the HTTP Header available to the client from the MessageContext.

-- 
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-2777) serviceClient.getOptions.setManageSession(true) option does not keep all the cookies / No way to access HTTP Transport headers in Axis2

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

Serdar Badem commented on AXIS2-2777:
-------------------------------------

Thanks Dims,
Sorry I didnt mean to derail the topic or ask for an additional specific cookie name to store.
My point is I would like see Axis2 keeping all the cookie values set using the Set-Cookie or Set-Cookie2 regardless of its name and use them for the subsequent WS calls when the ManageSession property is set to True. Currently it only keeps the cookies named  "JSESSIONID" or "axis_session"

Serdar

> serviceClient.getOptions.setManageSession(true) option does not keep all the cookies / No way to access HTTP Transport headers in Axis2
> ---------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-2777
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2777
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: transports
>    Affects Versions: 1.2
>         Environment: Windows XP Professional 
> JDK1.5
> Axis2 1.2
>            Reporter: Serdar Badem
>            Assignee: Deepal Jayasinghe
>
> I am trying to use Axis2 to access some 3rd party web services which happens to use Set-Cookie in the HTTP Header (Which gets filled in once successfully authenticated) and manages the session that way.
> Axis2 does not allow any way to access to the HTTP Header from the MessageContext. When I use the serviceClient.getOptions.setManageSession(true)  option it seems like this option only stores the selected items in the header :
> HTTPConstants.HEADER_SET_COOKIE
> HTTPConstants.HEADER_SET_COOKIE2
> and ONLY the cookies with the following names: 
> Constants.SESSION_COOKIE or
> Constants.SESSION_COOKIE_JSESSIONID
> which is very limited. We need a better way to support Cookies or more generically make the fields in the HTTP Header available to the client from the MessageContext.

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