Reputation: 6297
Is it possible to have jquery talk to my wcf service that is hosted as a window service? or it really needs to be hosted on IIS?
Also my regular wcf service don't have all this WebInvoke, AspNetCompatibilityRequirements. In it's current state can I use jquery to talk to my current wcf without making changes to it?
For example,
public interface IMyService
{
[OperationContract]
string SayHello();
}
public class MyService : IMyService
{
public string SayHello(){ return "Hello"; }
}
Upvotes: 0
Views: 261
Reputation: 1705
Technically speaking you can, but it will be a little complex thing. It will technically amount to convert your windows service to a http listener. To do so :
You can also refer to this question where the user is able to implement a Windows Service over HTTP.
Upvotes: 1