8

Question was :

  • Where does the code lies for Provider Hosted App? does it lie in SharePoint server? if not can we make them lie in SharePoint server.
  • How should we call the web services for Provider hosted app?
  • Can we write JSOM in Provider hosted app?

Anyone can explain in simple language. I am new to SharePoint 2013.

closed as too broad by Robert Lindgren Dec 20 '16 at 7:24

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

10
  • Where does the code lies for Provider Hosted App? does it lie in SharePoint server?

The code for provider hosted app lies in remote web. Remote web is a web application that is hosted outside sharepoint server. For on prem installations one needs to set up high trust between sharepoint and remote web using certificates.

  • How should we call the web services for Provider hosted app?

As remote web and sharepoint host site collection lie in different domains you need to use cross domain library (SP.RequestExecutor) to make cross domain calls to Sharepoint host site collection using REST APIs.

  • Can we write JSOM in Provider hosted app?

Yes we can write JSOM in PHA. However you need to load sharepoint client libraries - sp.js and sp.runtime.js

Hope your queries are resolved !!

  • 1
    Really Good! Keep it up! – Ram Dec 20 '16 at 4:24

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