Is there a way, based on some condition can I connect to different content services? e.g.: I have two different discover services and based some scenario I would need to fetch data from an another discovery/content service. Is that possible?
2 Answers
Yes you can. As Nuno mentions in his comment, you may opt not to use the CIL library in your web application and use a Web Service Reference to directly connect to the OData Content Delivery service. This means that you can rig up your own logic to determine when and where to make the connection.
Tridion's (SDL Web's) OData implementation follows the OData protocol documented by Microsoft (e.g. here: http://www.odata.org/documentation/). So you can leverage it however you need in your implementation.
-
1Just keep in mind all that the client SDK does - caching, ADF, OAuth, etc– Nuno Linhares ♦Mar 6, 2017 at 19:42
-
Remembering that this is a partial implementation of the OData protocol (per docs.sdl.com/LiveContent/content/en-US/SDL%20Web-v1/…) Mar 7, 2017 at 9:09
No, this is not possible. CIL can connect to only one discovery/content service per instance.
-
Thank you vinayk. I was wondering if there is an option to override SDL content library and override the endpoint url– RafeeqMar 6, 2017 at 8:29
-
I don't think it is possible at CIL level, as the content client is designed to work with only one Content service at any point of time.– vinayknlMar 6, 2017 at 12:07