I use the protocol jsonp to call web methods.
I use this code for the webservice:
public class Service1 : System.Web.Services.WebService
{
    [WebMethod]
    [ScriptMethod]
    public string HelloWorld()
    {
        return "Hello World";
    }
}
And this on Jquery with jason on client side:
        $.ajax({
            type: "POST",
            contentType: "application/json; charset=utf-8",
            url: 'http://localhost:50837/Service1.asmx/HelloWorld',
            data: {},
            dataType: "json",
            success: function(Msg) {
                alert('success:' + Msg.d.FirstName);
            },
            error: function(xhr, textStatus, errorThrown) {
                alert("error");
            }
        });
    }
This Jquery gives me always an error message, but I don't know the reason. Someone can help me?
 
     
     
    