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.

My WebService does not work, why?

webservice
0
Posted

My WebService does not work, why?

0

In order for a Web service to be accessed from script, it must be an .asmx Web service whose Web service class is qualified with the ScriptServiceAttribute attribute. Individual methods to be called from script must be qualified with the WebMethodAttribute attribute. For example, [ScriptService] public class SimpleWebService : System.Web.Services.WebService { [WebMethod] public string EchoInput(String input) { // Method code goes here. } } Add reference to the existing WebService in ScriptManager. Like this, Please make sure that the path is correct. You must configure the Web application to support calling Web services from script. In the Web.config file for the application, you must register the ScriptHandlerFactory HTTP handler, which processes calls made from script to .asmx Web services. For Web service calls that are

Related Questions

What is your question?

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