V
VEJIKYUULYCY
Hi all,
I'm trying to get a .Net client (C# console app) maintain
a session with a Java-based web service (Axis), but it doesn't seem
to work. (Of course, a Java client to the same service works fine)
My C# code looks like this:
Each call to the service results in a fresh, empty session,
instead of maintaining the initial one.
I'm watching the message exchange with a TCP monitor, and the
only clue I can come up with is that .Net expects a different
cookie name from the one set by the Java server; the initial
HTTP response contains the following set-cookie instruction:
But in the next request, .Net doesn't send any cookie at all.
I searched the whole web and google and found that this problem is
described a few times without any idea how to solve it. So is someone
already fixed it, please send a reply!
Thanks a lot,
-- Carsten
I'm trying to get a .Net client (C# console app) maintain
a session with a Java-based web service (Axis), but it doesn't seem
to work. (Of course, a Java client to the same service works fine)
My C# code looks like this:
TestSvcService ts = new TestSvcService();
ts.CookieContainer = new CookieContainer();
ts.doThis();
ts.doThat();
...
Each call to the service results in a fresh, empty session,
instead of maintaining the initial one.
I'm watching the message exchange with a TCP monitor, and the
only clue I can come up with is that .Net expects a different
cookie name from the one set by the Java server; the initial
HTTP response contains the following set-cookie instruction:
Set-Cookie: jsessionid=3029091017259021561;path=/
But in the next request, .Net doesn't send any cookie at all.
I searched the whole web and google and found that this problem is
described a few times without any idea how to solve it. So is someone
already fixed it, please send a reply!
Thanks a lot,
-- Carsten