Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / March 2005

Tip: Looking for answers? Try searching our database.

Slow creation of new WS + session states

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jez - 21 Mar 2005 12:43 GMT
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
Manohar Kamath - 24 Mar 2005 02:16 GMT
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.

Signature

Manohar Kamath
Editor, .netWire
www.dotnetwire.com

> I have a two-folded question :
>
[quoted text clipped - 11 lines]
>
> jez
jez - 24 Mar 2005 12:15 GMT
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

> Jez,
>
[quoted text clipped - 5 lines]
> You could improve the performance by using some caching strategy, either on
> the client or on the server.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
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.