Hi,
although there is no maximum defined anywhere you should keep the number no more than 15-20, as it is strange to have a big number of methods within the same contract. Try to keep the architecture as scalable as you can (a big number of methods will very likely confuse the consumer of these items).
Relating to the
ViewState
- as far as I know you cannot use it within the Web-Service, but why not using the
Cache
for the exactly same purpose:
HttpRuntime.Cache.Insert(key, value, null, System.Web.Caching.Cache.NoAbsoluteExpiration, System.Web.Caching.Cache.NoSlidingExpiration, System.Web.Caching.CacheItemPriority.NotRemovable, null);
You can further analyze the Cache
here[
^].
"Is Web Service is secure for storing password" - yes it is secure as far as you implement well defined security mechanisms (Web calls via HTTPS is a must in this case). It really depends upon the required architecture what kind of security mechanism needs to be implemented.
"What is the main difference between Web Application and Website" -
read this post[
^]
Regards