Lev
Lev

Reputation: 3924

How to return fields from running Windows service using ASMX Web Service?

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

Answers (1)

John Saunders
John Saunders

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

Related Questions