I have built the CMS using Sitecore. I now need to access a webservice and
populate Sitecore with that.
To do this I am planning on implementing the DataProvider class which will
interact with the Webservice and provide content for Sitecore such that it can
be reviewed and published.
The documentation discusses being able to 'chain' together multiple
DataProviders - however if I do this as per the documentation, only the last
DataProvider is used. I am expecting an amalgamation of the two to occur.
Under the Master database section in the web.config file I have 2 data providers
as follows:
<dataProviders hint="list:AddDataProvider">
<dataProvider ref="dataProviders/main" param1="$(id)">
<prefetch hint="raw:AddPrefetch">
<sc.include file="/App_Config/Prefetch/Common.config" />
<sc.include file="/App_Config/Prefetch/Master.config" />
</prefetch>
</dataProvider>
<dataProvider ref="dataProviders/webserviceprovider"/>
</dataProviders>
Is this the correct way to chain data providers ?