locked
How to Consume On Premise WCF Service in SharePoint online RRS feed

  • Question

  • Currently SharePoint 2010 Portal is consuming On Premise WCF (Sending & Receiving Parameters).

    If we want to consume this onpremise WCF from SharePoint Online,  what are the options available ?

    Thursday, August 2, 2018 9:59 AM

All replies

  • You have several options.

    1. Provider-hosted Add-In. In this case you may use any hosting platform you want and consume the service in a way you are currently do.

    2. SharePoint-hosted app or any embedded javascript. In this case you need to make the service accessible from javascript


    If my suggestion helped you to solve your problem, please don't forget to mark it as Answer

    Thursday, August 2, 2018 11:22 AM
  • 1) Provider-hosted Add-In - In this approach, do we need to publish the WCF outside the internal network premise?

    2) SharePoint-hosted app  - make the service accessible from javascript. It is not very clear. Please explain.

    Thursday, August 2, 2018 1:23 PM
  • 1) Sure

    2) https://www.codeproject.com/Articles/845474/Enabling-CORS-in-WCF


    If my suggestion helped you to solve your problem, please don't forget to mark it as Answer

    Thursday, August 2, 2018 2:46 PM
  • Hi,

    For security reasons, cross-domain communication are blocking in SharePoint add-in, you need use web proxy to access data in your remote server.

    You could check below official guideline for more details.

    https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/query-a-remote-service-using-the-web-proxy-in-sharepoint  

    And you need publish your WCF service to internet so online users could request it.

    Best Regards,

    Lee


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


    Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.

    • Proposed as answer by Dennis Guo Monday, August 6, 2018 9:37 AM
    Friday, August 3, 2018 2:35 AM
  • Hi,

    I am checking to see how things are going there on this issue. Please let us know if you would like further assistance.

    You can mark the helpful post as answer to help other community members find the helpful information quickly.

    You can also share your own solution here and mark it as answer, and we can learn from each other.

    Best Regards,

    Lee


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


    Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.

    Tuesday, August 21, 2018 7:10 AM