Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Some Web service classes derive from System.Web.WebServices; others do not. What’s the deal?

0
Posted

Some Web service classes derive from System.Web.WebServices; others do not. What’s the deal?

0

Ans) WebService contributes properties named Application, Session, Context, Server, and User to derived classes enabling Web services to access the ASP.NET objects of the same name. If you don’t use these objects in your Web service-for example, if you don’t use application state or session state-then you don’t have to derive from WebService, either. Incidentally, if you want to use ASP.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.