.net - Consuming IIS hosted WCF via jQuery: IIS Error 400.0 -



.net - Consuming IIS hosted WCF via jQuery: IIS Error 400.0 -

i writing jquery/ajax implementation consume iis hosted wcf. jquery code in page on same server wcf. below code.

$(document).ready(function () { $.ajax({ type: "post", url: "https://xxx.yyy.com/_vti_bin/zzz_service/mdart4service.svc/statusason", contenttype: "application/json; charset=utf-8", // content type sent server datatype: "jsonp", //expected info format server success: function (xml) { alert("1"); alert(xml); }, error: function (xhr) { alert('some error'); alert(xhr.responsetext); alert(xhr.error); } }); });

all web resources uses more or less same code comsume it. same not working in case. goes error function. checked on fiddler / iislogs says 400.0 error code (bad syntax). not sure why not working me !

p.s. when seek browse wcf service on (https://xxx.yyy.com/_vti_bin/zzz_service/mdart4service.svc/statusason) on browser, error code same.

jquery .net ajax wcf

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -