473,385 Members | 1,930 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Hosting a Web Service in a Windows Service

Hi, all
I've got a windows service (server) application and a winforms (client)
application. What I need to do is to host a web service in the windows
service application so the client can request information about its current
state and request server's internal data to change on user's behalf, plus I
need to do it in a standard compliant way, such as xml/web services.

Any help/link/info would be very apreciated
Thanks
Jan 4 '07 #1
3 3319
OK, if I understand correctly, the client needs to query and change state of
the service via an open communications layer.

I would develop the web service as a normal .NEt IIS hosted web service that
merely queries the service via some mechanism (remoting over TCP comes to
mind here)

I hope this helps.

"Diego L Espiñeira" wrote:
Hi, all
I've got a windows service (server) application and a winforms (client)
application. What I need to do is to host a web service in the windows
service application so the client can request information about its current
state and request server's internal data to change on user's behalf, plus I
need to do it in a standard compliant way, such as xml/web services.

Any help/link/info would be very apreciated
Thanks
Jan 5 '07 #2
Hi, all
I've got a windows service (server) application and a winforms (client)
application. What I need to do is to host a web service in the windows
service application so the client can request information about its current
state and request server's internal data to change on user's behalf, plus I
need to do it in a standard compliant way, such as xml/web services.

Any help/link/info would be very apreciated
Thanks
Web Services Enhancements (WSE) should solve your problem.

Refer:
http://msdn2.microsoft.com/en-us/library/aa529311.aspx

Rgds,
Tejasvi

BizTalk Utilities - Frustration free BizTalk Adapters
http://www.topxml.com/biztalkutilities
Feb 2 '07 #3
Assuming your server is .NET 2.0 application then WSE 3.0 is a possible
method you could use; as per the previous post. To elaborate you could WSE
enable your service and use the TCP transport mechanism to communicate to
your service using SOAP over the TCP protocol assuming you wanted to keep
this all in process?

Essentially within your service you can derive a class from SoapService and
register it with the SOAPReceivers collection specifying the endpoint
reference of your server host ip and a desired port to listen on.

Within your client application you can derive from SoapClient and
communicate via an endpoint reference to the ip/port that your service is
listening on.

There are samples that show this within the WSE 3.0 SDK download.

Rgds,
Tim.

"Diego L Espiñeira" wrote:
Hi, all
I've got a windows service (server) application and a winforms (client)
application. What I need to do is to host a web service in the windows
service application so the client can request information about its current
state and request server's internal data to change on user's behalf, plus I
need to do it in a standard compliant way, such as xml/web services.

Any help/link/info would be very apreciated
Thanks
Feb 21 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Dan | last post by:
All, I have a Windows Service that is a hosting a Remote Object Server. The channels are configured via a Configuration File. Everything works fine but I noticed something. Regardless of what...
2
by: Nitin Verma | last post by:
Hi All, Am new to web service technology. Currently i created a web service at my home box. Now i want to Host/Publish it to the outside world... so that it is used by my web applicantion as...
4
by: Jay | last post by:
Sorry if posting this to the wrong group, but do you know of any asp.net hosting vendor with support for Crytal Reports? Apparently they do not exist due to high licensing costs at $25k per cpu....
0
by: Kunal Pandya | last post by:
Windows Web Hosting @ $ 14.95 / Year! with FREE Domain Registration!!! + Web Control Panel + MIn. 5 Email Boxes + Packages starting from as low as 10 MB upto 50 GB dedicated hosting + Extra...
5
by: Scott | last post by:
Can anyone refer me to a good hosting provider? I'm looking for a reseller plan with PHP 5, MySql 5, 24 x 7 support, and most importantly, a solid uptime record. Customer referrals only,...
1
by: Diego L Espiñeira | last post by:
Hi all!!! I am trying to build a windows service that hosts a web service using the classes in System.Web.Hosting namespace. I have a class library called Digicard.WebServiceHost containing the...
3
by: jonny | last post by:
Please recommend a Web Hosting Service that supports ASP.NET and SQL server. I am new at this and just signed up with Yahoo before I new any better. It appears that yahoo does not support ASP.NET...
6
by: Bob Altman | last post by:
This is a follow-on to my previous post. It occurs to me that I asked the wrong question. Here's what I'm really trying to accomplish: My application is a real-time airplane and avionics...
1
by: =?Utf-8?B?TWFuanJlZSBHYXJn?= | last post by:
Hi, I created a web service that I want to host in windows service. The problem is that if I host it as windows service it does not use the configuration file. I have to define the binding,...
4
by: Dave Burns | last post by:
I am self hosting a Web Service in a Windows service. I am trying to start the service using the NT AUTHORITY\NetworkService account. I get a NullReferenceException on ServiceHost.Open() in the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.