How to access WCF service Using Jquery ajax and C#.net
For Reference
https://debugmode.net/2011/12/22/how-to-enable-rest-and-soap-both-on-the-same-wcf-service/
For Reference
https://debugmode.net/2011/12/22/how-to-enable-rest-and-soap-both-on-the-same-wcf-service/
<script>
$(document).ready(function () {
var URL = "http://sample/service.svc/Check_Session";
$.ajax({
type: 'GET',
url: URL,
dataType: 'json',
crossDomain: true,
success: function (data) {
if (data.Message != "Success")
{
alert("success");
}
else {
alert("Fail");
}
},
error: function (ex) {
console.log("err");
}
});
});
</script>
No comments:
Post a Comment