This is my simple code to call asmx webservice (xml).
function maxTransaccion() {
    $.ajax({
        type: "POST",
        url: "WebService.asmx/MAxTransaccion",
        contentType: "application/json; charset=utf-8",
        dataType: "json",
        crossDomain: true,
        success: function(s) {
            return s.d;
        }
    });
}
But I received this error:
message: "s is not defined" proto: Error
I am doing something wrong? I use this ajax structure multiple times within a .js file. But only in this function it gives me error, what scares me is that it is so simple
 
     
    