Adding cookies to Webservices

Hi Everybody,
Iam trying to pass cookies from User Interface(WebApp) to WEbservice.
Iam using soapcontext to add the cookies

//the cookie is added
m is the webservice proxy name
SoapContext sContext = m.RequestSoapContext;
sContext.Add("cookies",aCookie);

//Iam trying to find out whether the cookie is passed at webservice it always return false
bool t = RequestSoapContext.Current.Contains("cookies")

I would like to know what is wrong with this or any other method thru which i can pass cookies
Thanks in advance

[690 byte] By [Padvit] at [2008-2-7]
# 1
I'm not sure I understand, but if you want to include cookies in the HTTP request sent to the web service, you must set the CookieContainer property of the client proxy to a new cookie container, which you can then fill however you like. Or are you trying instead to create a custom SOAP header?
anfortas at 2007-9-8 > top of Msdn Tech,.NET Development,ASMX Web Services and XML Serialization...

.NET Development

Site Classified