473,671 Members | 2,548 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Web Services Question

I am trying to accomplish the following task and need to be pointed
into the right direction.

I would like to create a C#.NET windows service that listens on a
specific port for a message to be sent to it through a NON .NET client
interface (whether TCP or HTTP). This message will contain
information to be processed. The information could be a single
command or an XML file.

Whether or not this is .NET Remoting or Web Services, I need it to
be touched in a VERY generic way.

....Any Ideas/Examples/Code Snippets?

--Adam
Nov 17 '05 #1
2 1211
First off, you don't want .NET Remoting. .NET Remoting assumes that you
have .NET on both ends, and so the binary encoding of data going back
and forth and the communication protocols are no problem, because both
ends speak ".NET".

This sounds like a job for Web Services. In fact, it sounds exactly
like Web Services. However, you do realize that this means that you
will need IIS running on the server? You have to host the Web Service
somewhere... it doesn't just run all by itself on a normal Windows
system (a problem that you don't have with .NET Remoting... it will run
as a service on a normal Windows system).

This may tempt you to try to use .NET Remoting to avoid having to
install IIS, but you said that you need a generic solution, and .NET
Remoting absolutely can't provide that. Web Services can. However, as I
said, the price is that you need an application server, like IIS (in
the case of .NET, I think that it _has_ to be IIS) running your service.

Nov 17 '05 #2
I am *pretty* sure I can get IIS on the workstation since it's going
to be Win2k at least...not a real big deal if I can't since one of the
networks is already going to be running an ASP.NET application anyway.

My initial thoughts (if I am repeating myself...sorry. I don't have
the original message in front of me) was to have a service running on
a port (say 6643) and serialize the data in the form of an HTTP POST
being posted to the windows service from the non .NET application.
That would remove the need for IIS and I could get away with
installing it (the Windows service) on the individual network's
workstation at my desk as opposed to pulling the required teeth to get
IIS installed on that same workstation.

From what has been said and what I have read, it seems that the
listener is simply acting as an interface. The data gets parsed
whether answered by a web service or a Windows service.

The only thing that I am now looking for is some kind of example that
will lead me to my solution?

Thanks for the quick response...
--Adam

On 5 Jun 2005 22:54:31 -0700, "Bruce Wood" <br*******@cana da.com>
wrote:
First off, you don't want .NET Remoting. .NET Remoting assumes that you
have .NET on both ends, and so the binary encoding of data going back
and forth and the communication protocols are no problem, because both
ends speak ".NET".

This sounds like a job for Web Services. In fact, it sounds exactly
like Web Services. However, you do realize that this means that you
will need IIS running on the server? You have to host the Web Service
somewhere... it doesn't just run all by itself on a normal Windows
system (a problem that you don't have with .NET Remoting... it will run
as a service on a normal Windows system).

This may tempt you to try to use .NET Remoting to avoid having to
install IIS, but you said that you need a generic solution, and .NET
Remoting absolutely can't provide that. Web Services can. However, as I
said, the price is that you need an application server, like IIS (in
the case of .NET, I think that it _has_ to be IIS) running your service.


Nov 17 '05 #3

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

Similar topics

4
7123
by: Bill Sonia | last post by:
I'm written a Windows Service to send e-mails on events like OnStart, OnStop, OnShutDown using System.Web.Mail. It works for everything but OnShutdown. My guess is that once my send mail code is executed, other necessary Windows Services have been terminated before it can actually send the mail. I've updated my HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services registry DependOnService value including SMPTSVC and others. My hope is...
2
2178
by: IcedCrow | last post by:
#1) Burning question on my mind is ... what is the difference between a "web service" and a distributed COM component other then a distributed COM component had to be registered on a host server and be a part of a network whereas the web service can be located via URL? I don't see much of a difference and it bugs me :-) They both sit outside of the client computer. They both provide functionality. They are both called remotely.
26
1892
by: Mr Newbie | last post by:
What do I need to run a web service on my PC ? I know I need the .NET Framework, but do I need IIS Running ?
8
2739
by: Woody Splawn | last post by:
I am asking this question here because I asked this question in the Reporting Services Newsgroup and did not get an answer. Does anyone know if Reporting Services is intended to work in a client/Server or Local machine environment? Based on what I have seen my guess is yes but that is a guess. In some materal it talks about it running on a web server but my supposition is that this does not necessarily mean that it would not make for a...
3
6499
by: Matt D | last post by:
I've got two web services that use the same data types and that clients will have to consume. I read the msdn article on sharing types (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnservice/html/service07162002.asp) but I don't want clients to have to add two web references and then manually have to edit the proxy classes. After doing some searching I found that putting references to multiple web services in a .disco...
21
11197
by: EmJayEm | last post by:
Can someone tell me the Disadvantages/Cons of web services? Thanks, EmJ.
7
6013
by: Stu | last post by:
Hi, I have a web service which returns a record set and works well integrated with an asp dot net page. However if I decided to develop a unix app will i be able to read the dataset as it is or do i need to write the xml as text from the web service and supply a DTD. Also any other pitfalls TIA
1
1244
by: Robert Strickland | last post by:
We are developing a several web applications that use 'services' that perform key business functions for our applications. These same 'services' are avaible to paying clients through web services. To summarize, we have clients that use our web applications (they need UI) and we have clients that just need the 'services' where they integrate our 'services' with their applications through the web services. We have a single server that houses...
0
1803
by: krishnaraju | last post by:
HI to all, please help me.its urgent requirement. my question is this is the wsdl file i got from our client.please see at bottom. when iam trying to access that webmethods iam getting only byval params but i didnt get byref params.please let me know how to get byref values from web methods. please help me in this regard because its an urgent requirement. ------------------------wsdl...
4
1206
by: =?Utf-8?B?Um9iIE1pbGxtYW4=?= | last post by:
I am developing a C# client app using VS 2008 that consumes a 3rd party web service. My question is how/where in my IDE/Debugging session can I visually see the actual XML message that is being sent to the web service? To debug specific cases, the other party wants to see the XML that is being submitted. Any help is appreciated.
0
8481
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8400
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8823
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8602
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8672
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6234
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2817
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2058
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.