Re: Improving first access to a web service

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Alvin Bruney [MVP] (vapor)
Date: 02/15/05


Date: Mon, 14 Feb 2005 21:11:09 -0500

cache duration has nothing to do with initial access.

About the best you can do with the current technology is to encourage your
users to sit and wait :-). If you are anal like me, you can write a little
utility that simply fires a webrequest periodically to keep the application
warm and toasty. That will change for ASP.NET 2.0 so sit tight.

I'd say that 30 seconds is unusually long for startup but I'm not all that
familiar with your implementation.

>From what I've learned this overhead is for
> processing the
>>wsdl file
Not really, the startup cost is a feature (or fault) of .NET

-- 
Regards,
Alvin Bruney [Microsoft MVP ASP.NET]
[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ http://www.lulu.com/owc
----------------------------------------------------------
"Joey" <anonymous@discussions.microsoft.com> wrote in message 
news:26f901c51300$1aed1540$a401280a@phx.gbl...
>
> Hi,
>
> Above your web service you can put a cache duration(in
> seconds). Not sure if this can help
>
> [WebService(Namespace="http://abc/webservices/",
>             Description="ABC Web Service",
> CacheDuration = 30)]
>
>
> Joey
>
>>-----Original Message-----
>>I'm programming a site that displays info from AWS
> Commerce Service
>>4.0.  At each change of the asp.net application the first
> load of a
>>page that uses the web service takes 30 seconds.
> Subsequent calls are
>>snappy.  From what I've learned this overhead is for
> processing the
>>wsdl file (which has of course not changed).  The file is
> large, 2200
>>lines.
>>
>>Is there a way to use this file locally on the web server
> or cache the
>>result of the read?  It would really speed my development
> iterations.
>>
>>Sorry if I'm missing something basic or am asking the
> question with the
>>wrong terms.  I suspect that's why I'm not finding the
> answer quickly
>>in the newsgroups.
>>
>>Thanks!
>>
>>.
>> 


Relevant Pages

  • Improving first access to a web service
    ... Above your web service you can put a cache duration(in ... Joey ... >I'm programming a site that displays info from AWS ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: How to consume IBM CICS Web Service
    ... I simply put swdl file in local IIS and add web reference in my client app. ... Web service is external, ... change the wsdl file to reference the ...
    (microsoft.public.biztalk.general)
  • Re: Datasets fundamental
    ... assigned to me is something like client has tool that pushes the ... Not really a viable option in a web service ... engine is better at caching than you. ... to use the ASP.NET caching and read records from the cache. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Performance problem with RegEx
    ... Store a DataTable in the Application Cache. ... FTP Client Classes, Enhanced Data Controls, much more. ... Everytime the web service is called, among other things, the webmethod ... I have seen that as I add more regular expressions to test against, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Programmatically flush iis cache
    ... I'm using WSE 2.0 to secure a web service. ... about how iis caches items and how to flush this. ... >> Is there a way to flush the cache from a web service? ...
    (microsoft.public.dotnet.framework.aspnet)