I have a Silverlight project in a solution of Silverlight Application. I also have a WCF service hosted in the same solution which exposes some method to the Silverlight app.
When I make a call to the service method from Silverlight it takes 4 seconds to reach the service method.
Why is it so, and how can I improve this?
I have logged time in an object list. I add DateTime.Now object to collection at each step, then I calculate reach time of each step. And I am making the call through Service proxy.
Are all of your webservices call taking 4 seconds? The first one can be longer because the application is starting, but afterwards, the latency should be limited by the logic of your webservice.
Could you use fiddler, firebug or IE Dev tools to better monitor your service calls?