i have web service which is using .asmx when i am trying to access using jquery Ajax it is giving me problem of http 405 and some time 500 is it web service problem of client side problem please guide me with example
$j.ajax({ type: "POST", //url :'http://Service1.asmx/HelloWorld', url :webServiceUrl, cache:false, async: false, data: soap xml data, dataType :"xml", error:function () { alert("error"); }, contentType:"text/xml; charset=\"utf-8\"", }).done(function(response){ console.log(response); alert("Yahoo "); }); });