For Programmers: Free Programming Magazines  


Home > Archive > Microsoft Webservices > May 2006 > Calling Two Webservices









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Calling Two Webservices
Ken Ta

2006-05-29, 8:10 am

Hi all,

I'm building a Windows application that uses two web services.
The first one is use login and the second one is use to get data from a
database.
How can I maintain an open session ?
I've used the following code.

ObjName.CookieContainer = new System.Net.CookieContainer()
newServiceObj.CookieContainer = oldServiceObj.CookieContainer

When I try to execute the second web service, the session is lost
(SessionData.ActiveInstance.Login == False)?

Thank you
Ken






Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com