|
-
Mar 26th, 2003, 05:52 AM
#1
Thread Starter
Fanatic Member
getting xml data streams
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
-
Mar 26th, 2003, 06:49 AM
#2
Fanatic Member
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
-
Mar 26th, 2003, 06:53 AM
#3
Thread Starter
Fanatic Member
i agree and that's what i'd prefer to do but unfortunately it has to be an xml stream!
-
Mar 26th, 2003, 07:22 AM
#4
Fanatic Member
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?
-
Mar 26th, 2003, 07:54 AM
#5
Thread Starter
Fanatic Member
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?
-
Mar 26th, 2003, 07:56 AM
#6
Fanatic Member
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
-
Mar 26th, 2003, 08:05 AM
#7
Thread Starter
Fanatic Member
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|