Re: JS to WinService

2013-08-28 Thread Niaz Rana
Hi, need some more thoughts, currently application is like html+jQuery via WebAPI then web api hosted in Window service calling DAL methods at the end DB. working fine, yah. ;) so what is the problem.? problem is i want to put WebAPI controller stuff in seprate Layer and window service just

Re: JS to WinService

2013-08-28 Thread Niaz Rana
I want a separate layer or my APIController, like DAL we use in BLL or where ever we want to use. but when I try to put my APIController in a separate layer and host it as WindowService Client then it did't work but when I put my APIController in WindowService Project then it ONLY work. thanks,

Re: JS to WinService

2013-08-27 Thread Sam Lai
Just to clarify, you have a web application being served up from a server (machine A) and accessed from a client on machine B, and from the web app client-side, you want to communicate with a Windows Service running on machine B. If so, this isn't a question about the capabilities of ASP.NET or

Re: JS to WinService

2013-08-27 Thread Michael Ridland
Hi Niaz Maybe your leader and yourself are thinking of the same thing, as maybe he/she is referring to a ajax request as client side? Because when you don't use ajax you're doing full page request which 'could' be thought of as a server request while ajax as a client request? On Tue, Aug

Re: JS to WinService

2013-08-27 Thread Niaz Rana
Hi Thanks, basically the client is restricted within network to access this web app, although its not access able outside of network/province. so i was thinking to make a JSON WCF webservice and call from jquery blah blah, but we can't host at IIS, restriction from Leader, :( (i don't know why

Re: JS to WinService

2013-08-27 Thread Sam Lai
So you're going to distribute the web app to every client and make them run an instance of it locally and access it using their browser? Effectively, you have just converted your web app into a Windows app. You might as well create a quick WinForms window for it with a WebBrowser control so they

Re: JS to WinService

2013-08-27 Thread Niaz Rana
Dear Sam, You are 100% right, App nature is that I must run within Network/Lan but its Web App,...A what can I do if I have to follow. thanks for your support Guys. On Tue, Aug 27, 2013 at 12:55 PM, Sam Lai samuel@gmail.com wrote: So you're going to distribute the web app to

JS to WinService

2013-08-26 Thread Niaz Rana
Hi All, Can JS/JQuery call .NET WindowService method(s) at client side(Client Machine), where the web application running. Environment is Windows at client Server. Thanks, -MN

Re: JS to WinService

2013-08-26 Thread Jano Petras
Hi Niaz, Browser's XmlHttp request has a restriction that it can only invoke URLs that are on the same domain as the current URL. As as long as you serve the page from (for example): http://my.domain.com.au/my-page.aspx and then from JS make an Ajax request to anything that is on the

Re: JS to WinService

2013-08-26 Thread Niaz Rana
Well, My understanding is that i have to make a web service(WCF) exposed as JSON or what ever and running at window service, and at clientside call it via JS or JQuery. but my leader is saying we have to do it at client side.? I dont know what he want to say. may be some otherway likeWebSockets