I’ve some static Engine class running in windows service, and I want to return Engine’s some fields using web service.(simple ASP.NET web service)
How can I do this?
when I simply write in my web service:
return Engine.SomeField;
It creates new instance of Engine end works with that, which is different from Engine running in windows service, even if it’s marked as static.
You cannot use an ASMX web service (aka ASP.NET web service) inside of a Windows Service. Only WCF has the ability to be hosted inside of anything other than IIS.