Top ASP.NET Items

Sponsors

Silverlight 4 + RIA Services - Ready for Business: Ajax Endpoint

Continuing in our series , I wanted to touch on how a RIA Services can be exposed  your service in JSON .  This is very handy for Ajax clients.   The great thing is that enabling the JSON endpoint is that it requires NO changes whatsoever to the DomainService.  All you need to do is enable it is to add the JSON endpoint in web.config 1: < system.serviceModel > 2: < domainServices > 3: < endpoints > 4: < add name = "JSON" 5: type = "Microsoft.ServiceModel.DomainServices.Hosting.JsonEndpointFactory, Microsoft.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> 6: < add name = "OData" 7: type = "System.ServiceModel Read More...

Read the complete post at http://blogs.msdn.com/brada/archive/2010/04/12/silverlight-4-ria-services-ready-for-business-ajax-endpoint.aspx