Formatting Error With JSONP RRS feed

  • Question

  • Hi,


    We have a WCF service that return results in JSON format and we have successfully used this in JQuery calls in client side scripting internally. We are now calling the service from an external site over https and, because it’s a cross domain call, we have used JSONP to get round Allowed Origin errors. We can see that we are getting data back exactly as we have been doing for internal scripting, the problem is that we are getting an error Expected ';' at the colon after ProjectResult, e.g.




    We’ve a bit stumped as to what is causing the issue, if anyone has got any pointers that would be very useful.


    This is the call


                  function GetProject() {

                                 return new Promise(function (resolve, reject) {


                                                              url: _webserviceUrl + 'GetProject/' + _projectId,

                    method: "GET",

                    dataType: "jsonp",

                                                              headers: {

                        "ACCEPT": "application/json; odata=verbose",


                                                              success: function (data) {

                                                                            console.log("==== Getting project data");

                                                                            if (data.ProjectResult.length > 0) {


                                                                                          _projectData = data.ProjectResult[0];



                                                                            else {

                                                                                          console.log('#### Unable to retrieved project data');




                                                             error: function (error) {

                                                                            console.log("Get Project error");









    Wednesday, June 13, 2018 3:19 PM

All replies