473,765 Members | 2,121 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

P2P Chat w/Web Services


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

Nov 16 '05 #1
1 5218
Sami Vaaraniemi wrote:
"Pepe Le Peu" <aa*****@mon.ch eri> wrote in message
Suppose I wanted to create a P2P application using just web services.

You could use WSE 2.0 and its messaging features. You can have a
SoapReceiver instance in the client that listens to a TCP port. No IIS
required.

Check out http://msdn.microsoft.com/msdnmag/is...3/09/XMLFiles/ .
(Unfortunately the samples were written for the WSE 2.0 Technology Preview.
There are some differences so the code will not compile as-is with WSE 2.0.
The concepts are still applicable though.)

Regards,
Sami


Excellent, Sammi. I just finished reading about WSE 2.0 and it sounds
exactly what I was trying ( not very well to describe ). This essay:

http://www.iona.com/hyplan/vinoski/p...ifications.pdf

Basically says that, yes, Web Services are lacking in callbacks and
notifications that would allow me to create a chat service using them.
However, the WSE 2.0 spec, if implemented, would by including callbacks
and WS-Events

My feeling is that .NET Remoting is /too/ much for many applications. A
2-way web service, used in instances where latency can be measured in
centiseconds rather than milliseconds.



Nov 16 '05 #2

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

Similar topics

4
2427
by: OJO | last post by:
Hello microsoft.public.dotnet.framework.aspnet! Is this possible to write very simple chat within asp.net (asking google I got only commercial components' websites)? BTW: How can I dynamically add LinkButton to my WebForm? TIA
3
3434
by: John Wright | last post by:
I am trying to create a very simple chat program using UDP through a web page. I am having problems getting this going. All the examples I've seen deal with remoting or application variables, or web services, etc. Does anyone have any resources to point me to (either VB.NET or C#) that explains how to create a simple chat on a web page? thanks. John
3
2596
by: A | last post by:
Hi all! I am currently working on a project where I need to create a web-based chat application that will be used for auctions. If possible, could I get some advice on how to create chat applications and which part of the .NET framework should I delve into? I would really appreciate the help! Cheers,
3
2514
by: Dexter | last post by:
Hello all, I need to build a chat using ASP.NET (VB), this chat is to the online communication with customers. I would like to know what is best. To use webservices or to use remote script? thanks
3
2957
by: Sven | last post by:
My current application is programmed in Visual Basic 6.0 It is a server and uses the winsock-control Now I have learned that the winsock control is not (fully) supported by VB.NET and that I have to use the "System.Net.Sockets namespace" As I am new to VB.NET, I want to ask if anyone knows a site where I can download a sample chat application programmed in VB. NET 2003? I mean there are a lot of Chat-programm-samples out there for VB...
1
1410
by: Ryan Olshan | last post by:
Join the Strong Coders Community, Scott Guthrie, General Manager, Microsoft Developer Division, and Microsoft MVPs for the continuation of the 1st MVP Live Chat on Friday, February 16, 2007 from 8:00pm-9:00pm EST. Get your tough questions answered by experts. No question is too hard. The chat will take place on MSDN Chats. See details below. Also, don't forget to add the date to your calendar. See you there. Calendars:...
0
1813
The1corrupted
by: The1corrupted | last post by:
Alright, I've set up a chat system that only works half way... I need suggestions on how to make it work better... I'm trying to figure out a way to make $_SESSION viewable to all players by making it equal $cchat, but I don't think it will work... I don't like to use the database because then the chat would become really tangled. It's only there for admin access. I want to keep the chat session specific while having what is posted...
5
3341
by: Tem | last post by:
Does anyone know how web-based chat like Gtalk in gmail works? how come it doesn't need to constantly refresh/send a request to the server to get new message? other web based chat room have to constantly refresh the page (every 10 sec) to get new messages Tem
0
1338
AmberJain
by: AmberJain | last post by:
Hello, There are loads of (one to one) FREE video chat services if you search Google. But I could not find the one which should fit my needs. My requirements: 1. I'm on a limited broadband connection (2.5GB upload/download per month including night unlimited from 2 am to 8am). So the video that is sent over the wires should be of small size and low quality. 2. I use *BSD (PCBSD and OpenBSD to be specific). I may also consider using some...
0
9568
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
10156
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10007
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...
0
9832
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...
0
6649
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();...
0
5275
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5419
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3531
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2805
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.