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 22:43:26 UTC

[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

    [ 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