Scroll To Top
Reader Level:

RIA Services - exposing SOAP endpoint

By Pradeep Chandraker on May 26, 2010
This article speaks about how to expose SOAP endpoint in RIA Services.

This article speaks about how to expose SOAP endpoint in RIA Services. Sometime you may want to enable same business logic and data available to client other than Silverlight, this is very useful in that kind of scenario. SOAP service can be consumed by WPF and WinForm application also SOAP is very famous model in other technologies like Java.

To enable SOAP endpoint the domain service don't need any changes, you have to just add SOAP endpoint in Web.config

        <add name="JSON" type="Microsoft.ServiceModel.DomainServices.Hosting.JsonEndpointFactory, Microsoft.ServiceModel.DomainServices.Hosting, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
        <add name="OData" type="System.ServiceModel.DomainServices.Hosting.ODataEndpointFactory, System.ServiceModel.DomainServices.Hosting.OData, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
        <add name="Soap" type="Microsoft.ServiceModel.DomainServices.Hosting.SoapXmlEndpointFactory, Microsoft.ServiceModel.DomainServices.Hosting, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />

The URL of SOAP endpoint is combination of namespace and domain service name.


Here is the wsdl of SOAP endpoint.


You can add service reference in your application and start using SOAP endpoint.