Sekhar
Sekhar

Reputation: 5797

Web Services and cookie handling

There's an web service and it depends on the cookies sent by the browser for its operations. The service works fine as long as it is being accessed by a browser, but fails when it is accessed by another service or program.

The aspx file that I want to introduce in step 2.a has full access to the original cookies. I need a way so that the cookies in 2.a are forwarded in step 2.b

(step 3 is not required after 2.a and 2.b are developed )

Thanks alt text

Thanks

Upvotes: 1

Views: 845

Answers (1)

John Saunders
John Saunders

Reputation: 161821

First, get the cookies to your C# code, somehow.

Second, use the CookieContainer property of your web service proxy to set the cookies to use.

Upvotes: 2

Related Questions