473,569 Members | 2,759 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Where to store the handle for a web service?

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
3 1723
Hi Hans,

Thanks for your posting.
Regarding on the webservice handle persist question, I'd like to confirm
something first:
1. Are you calling an remote asp.net webservice in your certain asp.net
webapplication and the asp.net web app is using sqlserver session?

2. Does he webservice you mentioned means the client proxy instance which
will send the SOAP Request and receive SOAP response from service server?

Based on my understanding, the ASP.NET Webservice's client proxy class is a
concrete class derived from SoapHttpClientP rotocol class. And this class
is simply create webrequest components (HttpWebRequest .... for webservice
over http...) and send request and receive response through the webRequest
component. Also, I don't think there has any "handler" concept in such
model since the underlying http connection to the server between client
are managed by the ServicePointMan ger... We can not explicitly control
which connection our webservice client proxy will use (or manually create
and assign a connection to our proxy...). As far as I know, the
SoapHttpClientP rotocol( just our webservice proxy) has an
"ConnectionGrou pName" property which is used to specify a certain
"GroupName" for the underlying WebRequest component our webservice proxy
use. Thus, when the ServicePointMan ager will be asked to give our
webservice proxy a certain connection to a certain remote server, it will
help reuse and share existing connections between those webRequest
components that has the same "ConnectionGrou pName".....

#WebClientProto col.ConnectionG roupName Property
http://msdn.microsoft.com/library/en...webservicespro
tocolswebclient protocolclassco nnectiongroupna metopic.asp?fra me=true

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)



--------------------
| From: Hans Merkl <rh*****@newsgr oups.nospam>
| Subject: Where to store the handle for a web service?
| User-Agent: 40tude_Dialog/2.0.14.1
| MIME-Version: 1.0
| Content-Type: text/plain; charset="us-ascii"
| Content-Transfer-Encoding: 7bit
| Sender: rh*****@newsgro ups.nospam
| Reply-To: rh*****@newsgro ups.nospam
| Organization: RHM Media, LLC
| Date: Mon, 21 Nov 2005 22:04:45 -0500
| Message-ID: <1a************ *************** ***@40tude.net>
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: pcp0011547978pc s.anapol01.md.c omcast.net 68.54.166.32
| Lines: 1
| Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP10.phx. gbl
| Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:3600 24
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
| 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
Steven,

Thanks for the detailed explanation. Definitely ome food for thoughts... I
have convinced my client to use memory session state for now so for now I
can ignore the problem.

Hans

On Tue, 22 Nov 2005 09:38:27 GMT, Steven Cheng[MSFT] wrote:
Hi Hans,

Thanks for your posting.
Regarding on the webservice handle persist question, I'd like to confirm
something first:
1. Are you calling an remote asp.net webservice in your certain asp.net
webapplication and the asp.net web app is using sqlserver session?

2. Does he webservice you mentioned means the client proxy instance which
will send the SOAP Request and receive SOAP response from service server?

Based on my understanding, the ASP.NET Webservice's client proxy class is a
concrete class derived from SoapHttpClientP rotocol class. And this class
is simply create webrequest components (HttpWebRequest .... for webservice
over http...) and send request and receive response through the webRequest
component. Also, I don't think there has any "handler" concept in such
model since the underlying http connection to the server between client
are managed by the ServicePointMan ger... We can not explicitly control
which connection our webservice client proxy will use (or manually create
and assign a connection to our proxy...). As far as I know, the
SoapHttpClientP rotocol( just our webservice proxy) has an
"ConnectionGrou pName" property which is used to specify a certain
"GroupName" for the underlying WebRequest component our webservice proxy
use. Thus, when the ServicePointMan ager will be asked to give our
webservice proxy a certain connection to a certain remote server, it will
help reuse and share existing connections between those webRequest
components that has the same "ConnectionGrou pName".....

#WebClientProto col.ConnectionG roupName Property
http://msdn.microsoft.com/library/en...webservicespro
tocolswebclient protocolclassco nnectiongroupna metopic.asp?fra me=true

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)



--------------------
| From: Hans Merkl <rh*****@newsgr oups.nospam>
| Subject: Where to store the handle for a web service?
| User-Agent: 40tude_Dialog/2.0.14.1
| MIME-Version: 1.0
| Content-Type: text/plain; charset="us-ascii"
| Content-Transfer-Encoding: 7bit
| Sender: rh*****@newsgro ups.nospam
| Reply-To: rh*****@newsgro ups.nospam
| Organization: RHM Media, LLC
| Date: Mon, 21 Nov 2005 22:04:45 -0500
| Message-ID: <1a************ *************** ***@40tude.net>
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: pcp0011547978pc s.anapol01.md.c omcast.net 68.54.166.32
| Lines: 1
| Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP10.phx. gbl
| Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:3600 24
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
| 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
Thank you for your response Hans.

Well, if there is anything else need assistance later, please feel free to
post here.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: Max <eu**********@y ahoo.com>
| Subject: Re: Where to store the handle for a web service?
| User-Agent: 40tude_Dialog/2.0.14.1
| MIME-Version: 1.0
| Content-Type: text/plain; charset="us-ascii"
| Content-Transfer-Encoding: 7bit
| References: <1a************ *************** ***@40tude.net>
<lC************ **@TK2MSFTNGXA0 2.phx.gbl>
| Date: Tue, 22 Nov 2005 14:00:41 -0500
| Message-ID: <1u************ *************** **@40tude.net>
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: pcp0011547978pc s.anapol01.md.c omcast.net 68.54.166.32
| Lines: 1
| Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP09.phx. gbl
| Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:3602 00
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
| Steven,
|
| Thanks for the detailed explanation. Definitely ome food for thoughts... I
| have convinced my client to use memory session state for now so for now I
| can ignore the problem.
|
| Hans
|
| On Tue, 22 Nov 2005 09:38:27 GMT, Steven Cheng[MSFT] wrote:
|
| > Hi Hans,
| >
| > Thanks for your posting.
| > Regarding on the webservice handle persist question, I'd like to
confirm
| > something first:
| > 1. Are you calling an remote asp.net webservice in your certain asp.net
| > webapplication and the asp.net web app is using sqlserver session?
| >
| > 2. Does he webservice you mentioned means the client proxy instance
which
| > will send the SOAP Request and receive SOAP response from service
server?
| >
| > Based on my understanding, the ASP.NET Webservice's client proxy class
is a
| > concrete class derived from SoapHttpClientP rotocol class. And this
class
| > is simply create webrequest components (HttpWebRequest .... for
webservice
| > over http...) and send request and receive response through the
webRequest
| > component. Also, I don't think there has any "handler" concept in such
| > model since the underlying http connection to the server between client

| > are managed by the ServicePointMan ger... We can not explicitly control
| > which connection our webservice client proxy will use (or manually
create
| > and assign a connection to our proxy...). As far as I know, the
| > SoapHttpClientP rotocol( just our webservice proxy) has an
| > "ConnectionGrou pName" property which is used to specify a certain
| > "GroupName" for the underlying WebRequest component our webservice
proxy
| > use. Thus, when the ServicePointMan ager will be asked to give our
| > webservice proxy a certain connection to a certain remote server, it
will
| > help reuse and share existing connections between those webRequest
| > components that has the same "ConnectionGrou pName".....
| >
| > #WebClientProto col.ConnectionG roupName Property
| >
http://msdn.microsoft.com/library/en...webservicespro
| > tocolswebclient protocolclassco nnectiongroupna metopic.asp?fra me=true
| >
| > Thanks,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| >
| >
| >
| >
| >
| >
| > --------------------
| >| From: Hans Merkl <rh*****@newsgr oups.nospam>
| >| Subject: Where to store the handle for a web service?
| >| User-Agent: 40tude_Dialog/2.0.14.1
| >| MIME-Version: 1.0
| >| Content-Type: text/plain; charset="us-ascii"
| >| Content-Transfer-Encoding: 7bit
| >| Sender: rh*****@newsgro ups.nospam
| >| Reply-To: rh*****@newsgro ups.nospam
| >| Organization: RHM Media, LLC
| >| Date: Mon, 21 Nov 2005 22:04:45 -0500
| >| Message-ID: <1a************ *************** ***@40tude.net>
| >| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| >| NNTP-Posting-Host: pcp0011547978pc s.anapol01.md.c omcast.net
68.54.166.32
| >| Lines: 1
| >| Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP10.phx. gbl
| >| Xref: TK2MSFTNGXA02.p hx.gbl
| > microsoft.publi c.dotnet.framew ork.aspnet:3600 24
| >| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
| >|
| >| 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 #4

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

Similar topics

18
526
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 the wierd part. Say their are 500 records in the file. If I run the process once, maybe 250 will appear. If I run it a second time, maybe 400...
2
2271
by: Chris Dunaway | last post by:
I have a web service that references a data class library which performs SQL Server access. Since the web service is also a class library, there is no App.Config, only Web.config. Is Web.Config the place I should store the connection string? If I call System.Configuration.ConfigurationSettings.AppConfig from the data class library, will...
77
14385
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 key in TreeView.Net... ----------------------------------------------- Best Regards From Tark
0
1694
by: Matthieu Siggen | last post by:
Hello, I'm really confused about how to define services when concerning data management. I'm going to take an example to show where is my problem. If I'm developping an application with two main business process. One is an agenda planning service (where I could enter meetings) and the second one is a work task manager (where I could enter...
1
1862
by: Patrick Dugan | last post by:
Is it possible to get the handle of a running service? I have a program (ActiveX program) running in memory. When I start my service I need to pass the service's handle to that program in order to attach to it. I cannot use Me.Handle because there is no such information within a service application. I have tried this small routine:
1
1765
by: Marc Gravell | last post by:
The problem: I want to have a (.NET 2.0) smart-client talking to an (IIS, ASP.NET 2.0) web-server to consume web-services. The authentication on the web-service is bespoke (I mention this just for completeness; essentially, the web-service is running (in configuration terms, at least) as anonymous - which is *not* to say that the methods...
2
1154
by: Max | 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 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...
1
3398
by: rdemyan via AccessMonster.com | last post by:
I'm trying to implement a licensing scheme. There are three types of licenses: Trial - good for 30 to 60 days Interim - good for 1 year Fully Paid - no expiration Everything is working fine and I've even implemented a registration system where the users can upgrade by just receiving a code from me.
6
2037
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 your business layer and/or data access layer? suppose in my data access layer, I provide try and catch, log the exception and re-throw it back...
0
7612
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8122
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7673
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6284
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5513
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1213
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
937
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.