Expose RIA Services as WCF with .NET 4

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!

Advertisement

About Chintan Jajal
.Net Application Architect..

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.