when am trying aceess a webservice remotely am getting Uncaught SyntaxError: Unexpected token error but service works properly and returns output as aURL
http://localhost:53830/sample.asmx/getPinnumber?callback=jQuery31105488972800365737_1509872462552&mobileNumber=9030733573&Imei=123456789012345&_=1509872462553
O/P:
{"Status":200,"Response":"1234"}
jquerycode:
- $.ajax({
- type:"GET",
- url: "http://localhost:53830/sample.asmx/getPinnumber",
- contentType: "application/json; charset=utf-8",
- data: { mobileNumber: 9030733573, Imei: "123456789012345" },
- dataType: "jsonp",
- success: function (json) {
- alert(json.d);
- },
- error: function () {
- alert("Hit error fn!");
- }
- });