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:
<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" /> //My winform hosted service
</Services>
</asp:ScriptManager>
Or do I have to host my service in IIS to be consumable by AJAX?