CacheDuration question

J

jeremy.stitt

I have a question about the CacheDuration property of a web method.

I have a client that calls a web method on a server and I understand
that the first call will process the method call normally. By setting
the CacheDuration property to a certain amount of time, the result of
the method call will be stored in the cache.

Is the result of the method call stored in cache at the client (who
made the web service call) or the server (where the web service lives)?

Once a web method has been cached, does this allow the client to simply
reuse the same data returned from the last call, or does the client
actually make another SOAP request and the web service returns a cached
result?
 
Y

Yunus Emre ALPÖZEN [MCAD.NET]

Web Service cache is hold in server side. If you call webservice with same
parameters web service is not executed and cached result is returned
automatically...

Simply test this with a simple web service:

[WebMethod(true,System.EnterpriseServices.TransactionOption.Supported,3000)]
public string HelloWorld()
{
return DateTime.Now.ToString();
}

Call this web service from different types of applications at different
times...See the result
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,754
Messages
2,569,527
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top