Nicholas Paldino [.NET/C# MVP]
6/9/2004 2:43:00 PM
Pepe,
Web services are not a good idea in this situation. The first thing is
that you would have to have some sort of loosely coupled eventing in your
web service which your UI would hook up to in order to send and receive
messages. This would be difficult to implement, to say the least.
Secondly, you have to host ASP.NET in your application to take advantage of
this, and this is no small feat.
I think that remoting would be a better solution for this, personally.
Either that, or use sockets directly for sending and receiving your
messages. Your overhead (on the line) would be much less.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
"Pepe Le Peu" <aaaaaaa@mon.cheri> wrote in message
news:2812666.RZCbFHnERG@news.west.earthlink.net...
>
> I have been looking at Remoting and Web Services and I think I can do
almost
> anything I want with Web Services.
>
> Here's my intellectual puzzle though:
>
> Suppose I wanted to create a P2P application using just web services.
>
> It would work something like this:
>
> 1) Assume a client (A) with a button and a text box.
>
> 2) Assume the client is aware of an identical client (B) on another
machine.
>
> 3) The client has a web method, Update(string Str)
>
> 4) When the method is called it sets the label.Text = Str
>
>
> So the idea is this is a very basic chat application.
>
> Client A cals ClientB.Update()
>
> and
>
> Client B calls ClientA.Update()
>
> The thing I need to figure out is how a c# windows form client can expose
a
> web method such as Update() ?
>
> Is it possible ?
>
> Is there an easy way to put a web services method into a regular client
> app ?
>
>
> --
> w:04
>