JS code:
$.ajax({ type: \'POST\', url: \'http://localhost/MyServiceDir/Service.asmx/Foo\', contentType: \'application/json; charset=u
Check xhr.status.
xhr.status