0
I’m doing maintenance on a C Project, which has Webservices. I created a new service and ran the program, it works as images below, but calling the method gives error 404.
This is normal behavior?
Code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
namespace ServicosMegasul
{
/// <summary>
/// Summary description for WebService1
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.ComponentModel.ToolboxItem(false)]
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
// [System.Web.Script.Services.ScriptService]
public class WebService1 : System.Web.Services.WebService
{
[WebMethod]
public string HelloWorld()
{
return "Hello World";
}
}
}
What is your version of IIS?
– Jéf Bueno
@jbueno I’m debugging it by Visual Studio 2013. Let’s see here.
– Tiedt Tech
@jbueno 7.5 IIS Express
– Tiedt Tech
Do you use Webservice ASMX? I have a question on the Stack: http://answall.com/questions/34145/como_consumer-um-webservice-asmx-atrav%C3%A9s-do-ajax-do-jquery/34148#34148
– Marconi
@Marconi I’m using asmx. But it’s still the same problem. I’m trying to figure out how to debug.
– Tiedt Tech