質問

私はSharePoint-HostedのSharePoint 2013のアプリケーションに取り組んでいて、jQuery.Ajax呼び出しを使用してリモートWebサービスからデータを取得できません。Microsoftによって文書化されたリモートデータを取得するための唯一の2つの方法は次のとおりです。/ a>またはa href="http://msdn.microsoft.com/jp/jaus-us/library/fp161183.aspx" real="nofollow">カスタムプロキシページ

これらのメソッドは、使用できる唯一のもの、または他に何か他のものがありますか?jQuery.Ajax呼び出しと似ているものを探しています。

役に立ちましたか?

解決

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.

ライセンス: CC-BY-SA帰属
所属していません sharepoint.stackexchange
scroll top