Expose RIA Services as WCF with .NET 4
October 14, 2010 Leave a Comment
Developing RIA/Silverlight solution, we faced a problem when we wanted to consume the same RIA Service in Biztalk integration process.
Below is a quick fix, which allows RIA service to be consumed as a WCF Service.
Add the following in your end point on RIA Host Service. You will need to have the latest version of RIA Services installed.
<endpoints> <add name="OData" type="System.ServiceModel.DomainServices.Hosting.ODataEndpointFactory, System.ServiceModel.DomainServices.Hosting.OData, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> </endpoints>
Also add Reference to Microsoft.ServiceModel.DomainServices.Hosting in RIA Web project.
Happy Coding!