Sitecore 网络服务扩展

Sitecore web service extension

我的要求是将第三方电子商务系统(IFS)产品同步到 sitecore。有没有一种方法可以使用新方法扩展 sitecore web 服务,我可以在其中获取产品并在 sitecore 中创建它们?或者有更好的方法来做到这一点。

我想将其创建为 sitecore 模块,以便我们可以将其安装在我们必须与该电子商务系统集成的任何 sitecore 网站上(IFS)。

http://yourhost/sitecore/shell/webservice/service.asmx

如有任何建议,我们将不胜感激。

您可能会使用 Sitecore 附带的 Item Web API (PDF link),或者甚至推出您自己编写的 Web 服务并调用本机 Sitecore API。如果您自己推出,则可以将其公开为 WCF 服务、Web API 或任何其他方法。您找到和引用的服务很旧,并不是真正为扩展而设计的。

您尝试执行的另一种方法(merge/integration Sitecore 中的另一个系统)是编写您自己的项目数据提供程序。以下是有关该主题的一些链接:

您应该考虑使用自定义数据提供程序,它适合手头的任务,并且允许您以类似于本机 Sitecore Items、inc 缓存和发布的方式管理外部数据。

集成外部数据中有更多信息 关于 SDN 的 Sitecore 文档和关于 The Black Art of Sitecore Custom Data Providers 的 Nick Wesselmans 文章是一个参考。

这些博客文章还提供了有关只读数据提供程序的更多详细信息,这很可能是您希望用于外部数据的内容:

请看Sitecore Commerce Connect product. It has been designed for such kind of tasks, see chapter 2.1.7 Product Synchronization:

Product Synchronization

Connect has its own product data model and a Product Synchronization service layer for exchanging product data with one or more external systems. The responsibility of the Product Synchronization service layer is to manage two-way synchronization of essential product data. The goal is to synchronize only the data that is needed to satisfy the most common e-commerce scenarios. In particular cases, the model can be extended. For more information on the default scenarios that are supported, see the developer guide.