You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Davanum Srinivas <da...@gmail.com> on 2005/11/12 21:38:24 UTC
Re: Setting cookie with apache axis
Could i pester you to add this into the FAQ? :)
thanks,
dims
On 11/11/05, Ravi Krishnamurthy <ra...@savvion.com> wrote:
> Hello all;
> well figured out a solution and this works for me. Came up with a solution
> aftre looking into the axis code.
>
> Posting the snippet below:
>
> ------------------------------------------
> String cookieValue = "someusercookie";
> Service service = new Service();
> service.setMaintainSession(true); // need to be set before creating the
> call..
>
> Call call = service.createCall();
> ....
>
> call.setProperty(HTTPConstants.HEADER_COOKIE,cookieValue);
> call.setProperty(HTTPConstants.HEADER_COOKIE2,cookieValue);
>
> ....
>
>
> call.invoke(...);
>
> -----------------------------------------
>
> regards,
> Ravi
>
> Ravi Krishnamurthy wrote:
> Hello:
> Let me know if this is possible with Apache Axis.
>
> All the webservies are secured with SiteMinder. During the webservice call
> the following needs to be done:
>
>
>
> obtain a sitemaintain token
>
> Take that token and use it to build a cookie associated with the
> webservicerequest. Its name will be SMSESSION, its value will be what you
> obtain from the SiteMinder service and it will need to be presented to all
> "companyname.com sites.
> Once you've associated the cookie, make the calls as you normally would.
> Suppose the token could be obtained how to set the cookie with Apache Axis
> for a dynamic invocation client. Any pointers will be very helpful.
>
> Thanks,
> Ravi
>
>
>
--
Davanum Srinivas : http://wso2.com/blogs/