Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / October 2004

Tip: Looking for answers? Try searching our database.

WebService session

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jb - 12 Oct 2004 09:15 GMT
How do I begin to go about persisting WebService session stuff when using
InfoPath?
Josh Bertsch [MSFT] - 26 Oct 2004 17:51 GMT
You'll have to be a little more specific.  Persisting what you received in
the form such that when you close your form it is saved and you don't have
to requery?  Or persisting "stuff" you submit from InfoPath to the
webservice?

--josh bertsch

> How do I begin to go about persisting WebService session stuff when using
> InfoPath?
jb - 27 Oct 2004 16:25 GMT
This was another attempt at a response to to an earlier post.  I have pasted
that below.

What I (think I) want is ability to reuse web service session, e.g. inside
one IP form I do a query to retrieve a record --- which involves log onto WS
and my WS keeps stuff in session --- and then, say, repeated updates and/or
adds.  Possibly reuse session across *different* IP forms too, but first
things first.

InfoPath talks to WebService.  WS requires initial logon, then persists
stuff in session state [WebMethod(EnableSession=true)].  I have many forms
for different tasks, would expect user to logon once then be able to use IP
forms as long as session lasts.

From reading (see below), my understanding is that I need to retrieve an
HTTP cookie from initial Web service connection and then pass this back in
future requests.  I guess I'll find some means to save it/pass it between IP
forms.  But all I know about in IP is QueryAdapter.Query() etc.  Do I have
any access to the "proxy class before calling the XML Web service method"?  
(Am scripting in MSE.)

Am I along the right lines, or barking up the wrong tree?

<WebMethodAttribute.EnableSession Property>
An XML Web service client is uniquely identified by an HTTP cookie returned
by an XML Web service. In order for an XML Web service to maintain session
state for a client, the client must persist the cookie. Clients can receive
the HTTP cookie by creating a new instance of CookieContainer and assigning
that to the CookieContainer property of the proxy class before calling the
XML Web service method. If you need to maintain session state beyond when the
proxy class instance goes out of scope, the client must persist the HTTP
cookie between calls to the XML Web service.
</WebMethodAttribute.EnableSession Property>

> You'll have to be a little more specific.  Persisting what you received in
> the form such that when you close your form it is saved and you don't have
[quoted text clipped - 5 lines]
> > How do I begin to go about persisting WebService session stuff when using
> > InfoPath?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.