Deploy a Custom WCF into SharePoint2010—Part 4
In this post, I will show you how to consume the custom WCF using asp.net Ajax. ASP.NET Ajax cannot consume services that are exposed over basicHttpBinding. However, it can consume services that are exposed over webHttpBinding and use the enableWebScript behavior. The steps are shown below:
1. Modify the web.config to add a new endpoint using webHttpBinding and enableWebScript behavior.
4. Now navigate to http:// ybest /SitePages/JSTestPage.aspx and you will see the results as below.
You can download the source code here.