Reputation: 3924
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.
Upvotes: 1
Views: 139
Reputation: 161821
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.
Upvotes: 1