How to host web service methods in your windows application? : DOTNET
This is a discussion on How to host web service methods in your windows application? within the DOTNET forums in Framework and Interface Programming category; ..NETTers, The .NET application that I am working on runs as a Windows service. A separate command line client program needs to communicate with this service to exchange data. The customers will run the client program as and when desired. Although I can write a traditional client/server communication program over TCP, I am thinking that web services would work best for my needs. The client program will simply communicate with the Windows service as a web service client. I searched on the net and I saw some reference to using HttpRuntime class and processing .asmx files. Although this may work ...
| DOTNET Discussion forums related to Microsoft Dot net technologies, CSharp and other related items |
![]() |
| | LinkBack | Thread Tools |
|
#1
| |||
| |||
| ..NETTers, The .NET application that I am working on runs as a Windows service. A separate command line client program needs to communicate with this service to exchange data. The customers will run the client program as and when desired. Although I can write a traditional client/server communication program over TCP, I am thinking that web services would work best for my needs. The client program will simply communicate with the Windows service as a web service client. I searched on the net and I saw some reference to using HttpRuntime class and processing .asmx files. Although this may work with some tweaking, I am looking for a simpler solution where I don't need to set up virtual directories and process .asmx files. My .NET application can simply expose certain web service methods that the client can consume. I would appreciate if you can forward me in the right direction. Thank you in advance for your help. Pradeep |
|
#2
| |||
| |||
| Thus wrote Pradeep, > .NETTers, > > The .NET application that I am working on runs as a Windows service. A > separate command line client program needs to communicate with this > service to exchange data. The customers will run the client program as > and when desired. > > Although I can write a traditional client/server communication program > over TCP, I am thinking that web services would work best for my > needs. The client program will simply communicate with the Windows > service as a web service client. > > I searched on the net and I saw some reference to using HttpRuntime > class and processing .asmx files. Although this may work with some > tweaking, I am looking for a simpler solution where I don't need to > set up virtual directories and process .asmx files. My .NET > application can simply expose certain web service methods that the > client can consume. > > I would appreciate if you can forward me in the right direction. Have a look at the Windows Communication Foundation in .NET 3.0. WCF services can be easily hosted in any kind of Windows application, not just IIS. And it by using the BasicHttpBinding, you can provide compatibility with ASP.NET2.0 web services. Cheers, -- Joerg Jooss news-reply@joergjooss.de |
|
#3
| |||
| |||
| Ok. I will take a look at it. Thank you for your help. Pradeep |
|
#4
| |||
| |||
| Hello There, With reference to the discussions mentioned above, I am also facing a similar design issue. I have a distributed application [Windows Service] which interacts with Clients using TIBCO Messages.Its a two way interaction.The Client sends in the Request and the response is sent Asynchronously via a TIBCO message.Now this Distributed Application is suppose to service Web Clients too. The Proposed design is Writing a Remoting Class within this Windows Service which will expose HTTPChannels. A WebService which will be consumed by the WebClients. This WebService Method will invoke this Remoting Class Method and sent the request to the Windows Service. We cannot use WCF due to Software Configuration limitations. Please let me know your comments on this Proposed solution. Thanking you in advance. *** Sent via Developersdex http://www.developersdex.com *** |
![]() |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Call .NET windows service methods from C++ | usenet | DOTNET | 2 | 06-25-2007 06:51 AM |
| Call .NET windows service methods from C++ | usenet | DOTNET | 0 | 06-19-2007 03:57 AM |
| Re: Host a Web Service in a Windows Forms Application | usenet | DOTNET | 0 | 04-02-2006 11:52 AM |
| Calling methods of a Windows service from .Net Applications | usenet | DOTNET | 1 | 11-09-2004 02:26 PM |


