4

I have Sitecore on Azure "Paas". I need to expose some Sitecore functionality to external system, for example allow external system to create Sitecore item.

Normally I would create a web service for this, but since its Sitecore on Azure I am not sure. I believe this might be handled with Sitecore client API but not really sure what solution to look for.

Thanks in Advance

2

You can still create web services using Azure Platform Services, including:

  1. Azure Functions with HTTP Trigger will enable you to make external Web service calls and Functions can then make API calls to Sitecore.
  2. Use API Gateway to enable metered and secured access if you have multiple clients that require tracking and throttling of usage.
  3. Or Azure API Apps provides hosting for API that is closest to the traditional "Web Services" project build in VS.

In all of the options above, you can leverage Sitecore APIs the same way you would if you had Sitecore hosted on-prem.

References:

| improve this answer | |
  • thanks, what about WebApi service or MVC routing, can they be used in a similar way? – Saad Alam Aug 29 '17 at 5:04
  • @SaadAlam Yes, you can still do that just as you would with Sitecore hosted on any other platform. – Konstantin Aug 29 '17 at 12:30
2

If your question is what is the best approach to allow external resources to interact with Sitecore, and not about how to create a web service:

I wouldn't re-invent the wheel. If you just need to expose Sitecore's functionality, just use Sitecore's functionality.

Sitecore already exposes its API with CRUD operations, including search: For the requirements you are mentioning, no need to create custom web services.

| improve this answer | |
1

A fourth option would be to create a WebAPI / MVC controller in your Sitecore solution (a new feature if you use a Helix/Habitat approach).

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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