Re: WebService session sessionstate SOAP
From: Brian Teutsch [MSFT] (brianteu_at_online.microsoft.com)
Date: 11/30/04
- Next message: Tilfried Weissenberger: "Re: What's the Web-Reference doing???"
- Previous message: Drew Marsh: "Re: Web service in EXE"
- In reply to: jb: "WebService session sessionstate SOAP"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 29 Nov 2004 17:33:13 -0800
InfoPath as a client doesn't respect the session cookie. You'll have to
receive the web service through script and store the header information into
the DOM somewhere, and handle the cookie get/send yourself. Sorry I don't
have any more information on how to do this, but at least you can stop
looking for something automatic within InfoPath.
Brian
"jb" <jb@discussions.microsoft.com> wrote in message
news:D508185A-92F1-4EAE-9997-531792C3D9DA@microsoft.com...
> *Please* help --- I'm tearing my hair out.
>
> I want to use sessionstate in a webservice, accessed from a client,
> written
> in script (JScript, InfoPath).
>
> I have written my webservice (C# .NET). I have marked the method(s) with
> EnableSession=true. I have read everything there is to read! I am told
> that
> to reuse session, my client needs to receive a cookie in the header from
> the
> webservice and then pass this back in all future calls. This can all be
> found in HttpWebClientProtocol.CookieContainer. I am told to "Assign the
> CookieContainer to the proxy class" in the web client.
>
> But my client isn't a C# .NET app! It's JScript in InfoPath.
>
> I have written code there to invoke the webmethod via SOAP/XMLHTTP, so I'm
> in charge of stuff. The call works fine, minus session stuff. But I
> cannot
> see where what I need for preserving the session is kept/accessed? As I
> understand it, I'm just looking to preserve a cookie for "sessionid" that
> will be in the "header" (SOAP header? HTTP header?) sent to me from the
> webservice?
>
> I'm lost & frustrated...
- Next message: Tilfried Weissenberger: "Re: What's the Web-Reference doing???"
- Previous message: Drew Marsh: "Re: Web service in EXE"
- In reply to: jb: "WebService session sessionstate SOAP"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|