473,396 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Where to store the handle of a web service between requests?

Max
Hi,

I am helping to build a web app that's pretty much a wrapper around a web
service. The question now is how to store the handle of the web service
object between requests. My client is using SQL server for session state so
I don't think I can store the web service handle there since it's not
serializable.

Opening up a connection to this particular service is quite slow so I don't
want to reopen it for every request.

I am looking for suggestions how to store the web service handle. Any
ideas?

Thanks

Hans
Nov 23 '05 #1
2 1143
store in the Application object and use a pool approach. you could add a
background thread to age the pool (close and delete aged connections).

note: most http based webservices are single shot and close the connection
automatically after every request. even if keepalive is set, its for only a
short period.

-- bruce (sqlwork.com)

"Max" <eu**********@yahoo.com> wrote in message
news:1k****************************@40tude.net...
Hi,

I am helping to build a web app that's pretty much a wrapper around a web
service. The question now is how to store the handle of the web service
object between requests. My client is using SQL server for session state
so
I don't think I can store the web service handle there since it's not
serializable.

Opening up a connection to this particular service is quite slow so I
don't
want to reopen it for every request.

I am looking for suggestions how to store the web service handle. Any
ideas?

Thanks

Hans

Nov 23 '05 #2
Max
Storing it in the application object is a good idea. I'll try that.

I am not sure what my web service is doing exactly but requests after a
login are definitely much faster than the initial login. To me that means
some kind of connection/session gets maintained.

Hans

On Tue, 22 Nov 2005 10:03:24 -0800, Bruce Barker wrote:
store in the Application object and use a pool approach. you could add a
background thread to age the pool (close and delete aged connections).

note: most http based webservices are single shot and close the connection
automatically after every request. even if keepalive is set, its for only a
short period.

-- bruce (sqlwork.com)

"Max" <eu**********@yahoo.com> wrote in message
news:1k****************************@40tude.net...
Hi,

I am helping to build a web app that's pretty much a wrapper around a web
service. The question now is how to store the handle of the web service
object between requests. My client is using SQL server for session state
so
I don't think I can store the web service handle there since it's not
serializable.

Opening up a connection to this particular service is quite slow so I
don't
want to reopen it for every request.

I am looking for suggestions how to store the web service handle. Any
ideas?

Thanks

Hans

Nov 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: jabailo | last post by:
I wrote a program that loops through a file of records. It parses each line in the file and sends them to a web service that inserts them into an AS400DB2 database using Asynch calls. This is...
0
by: Tiro | last post by:
Hi, I am trying to understand how does .Net Web Service handle requests for multiple clients simultaneously. Here is what I am trying to achieve. I have created a web serive that search...
77
by: Tark Siala | last post by:
hi i working with TreeView in VB6, and have good Properity Named (Key) with the Key i can goto Any Node i know hes Key. but in VB.NET i can find the Key :( please tell me where i can find the...
3
by: Hans Merkl | last post by:
Hi, I am helping to build a web app that's pretty much a wrapper around a web service. The question now is how to store the handle of the web service object between requests. My client is using...
7
by: Shadow Lynx | last post by:
I realize that his question has been asked, in many other forms, many times in this group. Even so, my tired eyes have not yet found a sufficient answer, so I've decided to "reask" it even though...
4
by: sracherla | last post by:
I am trying to write a simple windows service that accepts an incoming request; receives a string input and sends a string output. I need this connection to stay alive until the client closes it....
6
by: Liming | last post by:
Hi, In a typical 3 tier model (view layer, busines layer and data access layer) where do you handle your exceptions? do you let it buble up all the way to the .aspx pages or do you handle it in...
3
dmjpro
by: dmjpro | last post by:
plz send me a good link which can clearify me how the J2EE framework works i want the details information .... plz help thanx
7
by: AboutJAV | last post by:
Hi, I was thinking of using MSMQ to handling multiple simultaneous database request to update or insert records to table. There could be hundreds of database existing connections trying to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.