I have developed a wcf service for asp.net ajax client. It includes the following steps.
(1) Created WCF sevice contract with the operation "DoWork()" which will take string as input and retun string as output.
(2)Implemented the above operation contract(attributed the implementation class with aspnetcompatibility requirement as enabled).
(3)Added the webscriptenabled to endpoint in web.config file.
(4)Hosted the wcf servie.
(1)Opend new asp.net webapplication.
(2)Added the downloaded .js file.
(3)Given the scripts path for ajaxscript manager as both .js file and service url.