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" />
Leave a Reply