Ask a Question related to ASP.NET Web Services, Design and Development.
-
jez #1
Slow creation of new WS + session states
I have a two-folded question :
1) Do I need to create a new Webservice each time I want to make a call to a
method from a different form? (it's pretty slow!) I have an application on
..NetCF with different forms; I wish to know whether I can just create a
webservice once and access the webservice object from my different forms
(just like I do with my static variables).
2) Are sessions kept between different webservice calls coming from the same
client? If 1) is true then I'd hope that sessions are kept between different
calls.
Thanks a lot,
jez
jez Guest
-
#16263 [Com]: session.start() create new empty session file and not resume existing session
ID: 16263 Comment by: pat at burnttech dot com Reported By: kur at natur dot cuni dot cz Status: No Feedback... -
slow pdf creation
I have two macs that are having great difficulty creating a pdf file using the Print method. This is mostly in Quark 6.1, but that is because it is... -
Adding states to a POE::Session at runtime
I've been pouring over the pods for a few hours now. It's possible I missed it (I'm rather tired), but I can't find any information on adding... -
[PHP] states
> > Does anyone know of any built in functions or options for the US states? Hi Matt Look at... -
Using SQL Server for session states
I tried configuring my web application to use SQL Server for session states and I installed the SQL script provided by .NET to set up the databases... -
Manohar Kamath #2
Re: Slow creation of new WS + session states
Jez,
Webservices should inherently be stateless. You could turn the session state
on, but you are now assuming that the consumer of the service is a browser,
or someone who returns the session state cookie. This limits the types of
clients the service can have.
You could improve the performance by using some caching strategy, either on
the client or on the server.
--
Manohar Kamath
Editor, .netWire
[url]www.dotnetwire.com[/url]
"jez" <jez@discussions.microsoft.com> wrote in message
news:57D93F00-61CE-4073-B03C-F95F2A94271A@microsoft.com...a> I have a two-folded question :
>
> 1) Do I need to create a new Webservice each time I want to make a call tosame> method from a different form? (it's pretty slow!) I have an application on
> .NetCF with different forms; I wish to know whether I can just create a
> webservice once and access the webservice object from my different forms
> (just like I do with my static variables).
>
> 2) Are sessions kept between different webservice calls coming from thedifferent> client? If 1) is true then I'd hope that sessions are kept between> calls.
>
> Thanks a lot,
>
> jez
Manohar Kamath Guest
-
jez #3
Re: Slow creation of new WS + session states
I ended up using sessions. It's not too much of a problem because my
application is totally geared towards a customized NETcf application that I'm
making.
I am interested however on speeding up a webservice connection; Right now
all I do is Service1 ws = new Service1(); and then make an async call to the
webservice. It's much nicer than using a sync call but I believe that the
actual webservice creation is still too slow. Could that have anything to do
with my computer? (Centrino 1.7Ghz w/512MB) - I'm not planning on having more
than 5 concurrent users. Please advice.
Kind regards
"Manohar Kamath" wrote:
> Jez,
>
> Webservices should inherently be stateless. You could turn the session state
> on, but you are now assuming that the consumer of the service is a browser,
> or someone who returns the session state cookie. This limits the types of
> clients the service can have.
>
> You could improve the performance by using some caching strategy, either on
> the client or on the server.
>
> --
> Manohar Kamath
> Editor, .netWire
> [url]www.dotnetwire.com[/url]jez Guest



Reply With Quote

