WCF and AJAX

In VS2010 – you are provided with a template for AJAX enabled WCF Service.

Basically, all you need to do is Add an AJAX-enabled endpoint to a WCF service

1. Create a BehaviorConfiguration and specify enableWebScript for the behavior.

<behavior name="AspNetAjaxBehavior">
                <enableWebScript />
            </behavior>
2. Create an endpoint that uses that behavior
<endpoint address=""
                behaviorConfiguration="AspNetAjaxBehavior" 
                binding="webHttpBinding"
                contract="Microsoft.Ajax.Samples.ICalculator" />

Cloud Advisory Services | Security Advisory Services | Data Science Advisory and Research

Specializing in high volume web and cloud application architecture, Anuj Varma’s customer base includes Fortune 100 companies (dell.com, British Petroleum, Schlumberger).

All content on this site is original and owned by AdverSite Web Holdings, Inc. – the parent company of anujvarma.com. No part of it may be reproduced without EXPLICIT consent from the owner of the content.

Anuj Varma – who has written posts on Anuj Varma, Technology Architect.


Leave a Reply

Your email address will not be published. Required fields are marked *