Click here to Skip to main content
15,902,275 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi!

I have a Winform hosted WCF service with Ajax Web endpoint.

I also have an ASP.NET project separately, with ScriptManager component on the page.

My question is, should that work if I make service calls to my Winform hosted service from the client side of ASP.NET app using javascript?

My ASP.NET Default page looks like this:

XML
<script type="text/javascript">    
function Button1_onclick() {
        ????How to call a service method?????
    }
</script>

<asp:ScriptManager ID="ScriptManager1" runat="server">
       <Services>
           <asp:ServiceReference Path="http://localhost:8000/web" /> //Path to my winform hosted service.
       </Services>
</asp:ScriptManager>


Or do I have to host my service in IIS to be consumable by AJAX?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900