sachien mittal

sachien mittal

  • NA
  • 1
  • 2.3k

IIS hosted WCF, How to call in AJAX javascript

Aug 2 2011 2:31 AM

I am trying to call a IIS hosted Ajax Enabled WCF service from ASp.net page using javascript.

 

But I am not able to get the reference of the WCF service I have created and already hosted on IIS.  

 

If I try to access the WCF service by providing the URL of WCF i can get the correct result page but I can not get  reference in Javascipt.

 

my script manager code look like this

 

<asp:ScriptManager ID="ScriptManager1" runat="server">       <Services>         <asp:ServiceReference Path="http://localhost:8084/AjaxService.svc" />       </Services>            </asp:ScriptManager> 


Answers (1)