Calling a webservice twice from a mobile application .NET causing problems
I have a mobile application calling a webservice. When I run the application once it works normally开发者_如何学Go, but if i call it again without restarting the application, the webservice is not even triggered.
Do you have an idea of what the problem might be?
A webservice call is essenially, reading a webpage. So, the real question is -- "Is the GET request coming in?" If so, the problem is with your server; if not, it's with the client.
When First time web method is called, It is taken time for generation a proxy for web service.
Later it is saved into the cache. Best approach is to call a dummy or helloworld web method for generating proxy and saving into cache.
Next time, whenever any web method will be called, it will be performed quicker.
精彩评论