Solved

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

Posted on 2004-08-25
9
193 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
 

Expert Comment

by:Kushalnagar
Comment Utility
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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 5

Expert Comment

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

Author Comment

by:benk-master-flash
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
I will post a link for the report and a zip file with some source code to help on Monday.
Abhinav.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

771 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now