Quantcast
Channel: SharePoint 2013 - General Discussions and Questions forum
Viewing all articles
Browse latest Browse all 26374

Call WCF service in SharePoint-Hosted Apps : SCRIPT1004: Expected ';'

$
0
0

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


Viewing all articles
Browse latest Browse all 26374

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>