Hi All,
I have an issue to call wcf server in sharepoint hosted apps. Error message is ,
JavaScript critical error at line 1, column 29 in
http:// url
SCRIPT1004: Expected ';'
in fiddler I can see the data , please refer my code below.
$.ajax({
type: "GET",
contentType: "application/json;odata=verbose",
url: Test.svc url,
dataType: "jsonp",
crossdomain: true,
xhrFields: { withCredentials: true},
success: function (data) {
alert("success");
},
error: function (data) {
alert("error");
}
});
I would appreciate it if you give any suggestion to solve this issue.
Thank you.
S.Shangar