CSOM SharePoint app 2013 External Services by Using WebProxy

Monday, July 29, 2013

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.

  • How to: Set up an on-premises development environment for apps for SharePoint
  • How to: Set up an environment for developing apps for SharePoint on Office 365

    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

     By usama wahab khan

    share this post
    Share to Facebook Share to Twitter Share to Google+ Share to Stumble Upon Share to Evernote Share to Blogger Share to Email Share to Yahoo Messenger More...