Slow creation of new WS + session states

Ask a Question related to ASP.NET Web Services, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. #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...
    2. 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...
    3. 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...
    4. [PHP] states
      > > Does anyone know of any built in functions or options for the US states? Hi Matt Look at...
    5. 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...
  3. #2

    Default 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...
    > 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 Guest

  4. #3

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139