Link to home
Start Free TrialLog in
Avatar of benk-master-flash
benk-master-flash

asked on

How to broadcast XML messages from lightweight server app to lightweight client app

I'm trying to build a simple XML messaging app/server that allows a sender to broadcast to a selected list of listeners.  The client app should be able to choose who he is listening to messages from. (i.e. client should be able to tune out certain senders).  both sides will be behind firewalls.  I initally thought System.Net.Sockets was the way to go.  Some others have suggested the Remoting library and SOAP and others.  How can I send XML messages via REMOTING/SOAP.  Not really sure where to start.
Avatar of thenrich
thenrich

XML Web Servies or remoting?
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnadvnet/html/vbnet10232001.asp

not quite sure what your looking for but it can be done with either 1 of the above. I prefer the web services myself.
Avatar of benk-master-flash

ASKER

Thanks for the post.

I think my solution is simpler than that on some levels.  here's what I'm looking to do in, in more detail.  I would like to have an small application capable of sending and recieving a very simple xml (with only say 5 pieces of data... text only, no objects) message to other applications of the same type that are on-line.  kind of like a CB radio really but internet based.
so for example i A,B,C,D,E,F are users of the application (mr. F) would like to send a simple XML message to his friends A,B,C but not D and E.  mr. A would like to listen to messages from F,B,C but not D or E.  The net effect is mr. A hears messages from F,B and C, and in this case, recieves the message from mr. F.

the application is for sending information from brokerage firms to instutional clients. as a broker you only want to send certain ideas to certain clients, and as a client you only want to listen to stuff from certain brokers.  i wan't it to essentially function as a single lightweight standalone client/server that people can download as an executable and just run.  

The appwould know how to get onto the network, and then know who else is on the network.  (i'm beginning to think that this means I need to run some server in the middle to coordinate the xml like sturctured chat,  do i need to develop a private network???  and then simple applications to message on that network???)

This will ideally replace the endless shotgun approach e-mail's that everybody sends that piss off clients and jam up inboxes and cause people to die of information overload.

does that make more sense.
I have built an application that transmits XML data between a server and a client.
I have set it up in such a way that the client requests a webpage from the server.

The webpage is an asp page which will reply back an XML file depending on the parameters sent to the server.
You can have client access or client number in the parameters and give out XML data relating to that client.

All this is done on the internet. So there is no need to have a private network.

Hope this solves your problem.

Good Luck
Abhinav.
Oh,

btw, alternatively,

You can have a webpage on the client machine running which will pick up XML data and save it or upload it to the client directory.

From the server you can send the file to these webpages by broadcasting to the specific URL's and the client machines will capture the file and saves it on the client machine directory as setup.

Abhinav.
It sounds like your trying to make your own messaging solution similiar to MSN Messanger
I think I like the idea of your first suggestion.  Is the data secure in transit.  I would imagine it's not.  Can you get me started along the way with some example code.  Also, the webpage sounds easy.  Is there anyway to display web content from a form-like interface.  I do not really like the idea of having to have a whole browser open.  But a small app that renders XML/HTML/ASP in a window is not a bad thing.  But, can it be done?
ASKER CERTIFIED SOLUTION
Avatar of Kushalnagar
Kushalnagar

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If you can post the link that would be great and I will award the points and close the issue.  Let me know.  I think I'm on the right track though.
I will post a link for the report and a zip file with some source code to help on Monday.
Abhinav.