Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 321
  • Last Modified:

Hosting web services in a windows NT service.


Hello,

I'm building an application in c# and  i've found that the most appropriate way to design it is a windows service. The program will occasionally need to be called from other non windows machines, and I was wanting to use web services to enable this.
The question is, Is it possible to run xml web services in a windows service.

scope_creep
0
scope_creep
Asked:
scope_creep
  • 2
1 Solution
 
boy8964Commented:
your question is not clear.

1. Do you talk about windows service or web service?

2. How can you run a web service in a windows service?? web service is a web application, run at a web server - in your case must be IIS (because your using C#)
0
 
mjmarlowCommented:
Yes you can run web services inside a windows service.  You can create your own "http listener" from within your service.  That listener can respond to web service requests.  See this article:

http://msdn.microsoft.com/msdnmag/issues/04/12/ServiceStation/default.aspx
 
0
 
scope_creepAuthor Commented:
Hi Folks,

I saw that article mjmarlow. I think the support for asmx being hosted outside of IIS has been imporved, re system.web.host, in .NET 2.

But what i'm really asking is wil the web services still be able to use WSE 3.0 . I know that simple web services can be implemted by building a custom httpworkerrequest handler, but without the security its a waste of time. The app calls for it.

Bob.
0
 
scope_creepAuthor Commented:
Hi Folks,

I found out you can create web services, i.e. web methods   on a windows service. There is a sample from the WSE 3 samples pack, which shows how it
can be done. With .net 2 also don't need to create a custom SSPI class. WSE3 handles it all.

regards
Bob.
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now