Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 204
  • Last Modified:

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.
0
benk-master-flash
Asked:
benk-master-flash
  • 4
  • 3
  • 2
1 Solution
 
thenrichCommented:
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
 
benk-master-flashAuthor Commented:
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
 
KushalnagarCommented:
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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
KushalnagarCommented:
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
 
thenrichCommented:
It sounds like your trying to make your own messaging solution similiar to MSN Messanger
0
 
benk-master-flashAuthor Commented:
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
 
KushalnagarCommented:
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
 
benk-master-flashAuthor Commented:
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
 
KushalnagarCommented:
I will post a link for the report and a zip file with some source code to help on Monday.
Abhinav.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now