Solved

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

Posted on 2004-08-25
9
196 Views
Last Modified: 2006-11-17
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.
0
Comment
Question by:benk-master-flash
  • 4
  • 3
  • 2
9 Comments
 
LVL 5

Expert Comment

by:thenrich
ID: 11893941
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.
0
 

Author Comment

by:benk-master-flash
ID: 11894593
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.
0
 

Expert Comment

by:Kushalnagar
ID: 11899802
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.
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

Expert Comment

by:Kushalnagar
ID: 11899811
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.
0
 
LVL 5

Expert Comment

by:thenrich
ID: 11901723
It sounds like your trying to make your own messaging solution similiar to MSN Messanger
0
 

Author Comment

by:benk-master-flash
ID: 11902169
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?
0
 

Accepted Solution

by:
Kushalnagar earned 125 total points
ID: 11910573
I am currently writing a report on securing the XML data that is flowing through the internet. I will post a link here when I finish it.
Shall post code snippets a bit later as I need to find out the legality of posting customer paid source code.

You do not need to open the browser to get the file. Just a simple call to the asp page via an app will do.

Abhinav.
0
 

Author Comment

by:benk-master-flash
ID: 11932690
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.
0
 

Expert Comment

by:Kushalnagar
ID: 11958860
I will post a link for the report and a zip file with some source code to help on Monday.
Abhinav.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question