Hi,
does anybody know anything about XML datastreams? I have someone that wants to send me a load of data in an xml data stream and i need to be able to recieve it.
Any tutorials of anything?
Cheers
Nick
Printable View
Hi,
does anybody know anything about XML datastreams? I have someone that wants to send me a load of data in an xml data stream and i need to be able to recieve it.
Any tutorials of anything?
Cheers
Nick
The easiest way is to get him to simply post the xml document up on the web
then you can load the document using a function like this
VB Code:
Private Function getStream() As Xml.XmlDocument Dim doc As New Xml.XmlDocument() doc.Load("http://www.thesource.com/xmldoc.xml") Return doc End Function
alternativly you can recieve it using a stream but i dont see why all the complication if he can create the document and postit as a page
i agree and that's what i'd prefer to do but unfortunately it has to be an xml stream!
well if its going to be a stream how is he intending on providing the stream
this will determine what you have to do in order to recieve the stream and dump it into an xml document
can you give me any clues to this?
to be honest i don't know at the moment. I'm just doing a bit of research as to the methods of achiving it would be. I pressume we would have a reader stream that stays open and listening or somthing?
best option is to use the networkstream
specify a common port that you will use
and have your app listen on that port
the remote app connects and sends a network stream over to your app
your app would then recieve that stream and dump it into the xmldocument object
thanks for the help.
is there a port that's usually set aside for this? like 80 being http?
Also do you know anywhere where i can do a bit more reading up?