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**********@yahoo.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**************@TK2MSFTNGXA02.phx.gbl>
| Date: Tue, 22 Nov 2005 14:00:41 -0500
| Message-ID: <1u*****************************@40tude.net>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: pcp0011547978pcs.anapol01.md.comcast.net 68.54.166.32
| Lines: 1
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP09.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:360200
| X-Tomcat-NG: microsoft.public.dotnet.framework.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 SoapHttpClientProtocol 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 ServicePointManger... 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
| > SoapHttpClientProtocol( just our webservice proxy) has an
| > "ConnectionGroupName" property which is used to specify a certain
| > "GroupName" for the underlying WebRequest component our webservice
proxy
| > use. Thus, when the ServicePointManager 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 "ConnectionGroupName".....
| >
| > #WebClientProtocol.ConnectionGroupName Property
| >
http://msdn.microsoft.com/library/en...webservicespro
| > tocolswebclientprotocolclassconnectiongroupnametop ic.asp?frame=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*****@newsgroups.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*****@newsgroups.nospam
| >| Reply-To:
rh*****@newsgroups.nospam
| >| Organization: RHM Media, LLC
| >| Date: Mon, 21 Nov 2005 22:04:45 -0500
| >| Message-ID: <1a******************************@40tude.net>
| >| Newsgroups: microsoft.public.dotnet.framework.aspnet
| >| NNTP-Posting-Host: pcp0011547978pcs.anapol01.md.comcast.net
68.54.166.32
| >| Lines: 1
| >| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP10.phx.gbl
| >| Xref: TK2MSFTNGXA02.phx.gbl
| > microsoft.public.dotnet.framework.aspnet:360024
| >| X-Tomcat-NG: microsoft.public.dotnet.framework.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
| >|
|