To Create Call External Web Service in SharePoint 2013 App. we need to WebProxy class to execute web Service Request in CSOM. Let Create external Web service in SharePoint 2013 Sample App. remember SharePoint App Developer environment should configured.
You can also use Office 365 SharePoint Online.
Open Visual Studio and Create SharePoint 2013 Project.
Add your Test or developer Site URL
Open App.Js File from solution Explorer. Cope the Following from Sample code and Paste into App.js
To Call External URL from App you need to set Permission for that URL in you App Manifest
Add your External Web Service URL in Side tag in my case i am using free online sample of northwind Database which avaliable on services.odata.org domain name.
Open your default.aspx file in App and SP.runtime.js and Also Executed SharePOint Ready method
Define html Container with ID in my case i used message in js code so i defined tab with id
and Hit F5
Download code Link :http://code.msdn.microsoft.com/SharePoint-Call-External-83b49a85
Related Content
- SP.WebProxy object
- Work with data in SharePoint 2013
- Apps for SharePoint overview
- Hosting options for apps for SharePoint
- Build apps for SharePoint
- How to: Create a basic SharePoint-hosted app (A Must)
0 comments:
Post a Comment