SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am working on an App for SharePoint 2013 that is SharePoint-hosted and I can't get data from a remote web service using a jQuery.ajax call. The only two ways to get remote data documented by Microsoft are: using a web proxy call or a custom proxy page.

Are these methods the only ones that you can use or is there something else available? I am looking for something that is similar with the jQuery.ajax call.

share|improve this question
up vote 0 down vote accepted

Here is a method to accomplish this: from the JavaScript page code use the jQuery.ajax function with the argument "dataType" set to "jsonp" and call the web service that supports jsonp requests and that returns a json result back.

You can find more details about a .NET specific implementation of a web service and the call code here: Rick Strahl - Creating a JSONP Formatter for ASP.NET Web API. You can get data from any web service that supports jsonp calls: it can be a node.js or a rails service.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.