S
Steve Wolfie
Hello all:
Again, let me thank everyone who has helped in the past. Can't wait till I
can help out with some advice of my own.
Now, I am building an app that wishes to retrieve the output of Google
Desktop. It is very simple, I wish to send an http request asking for the
results in XML. ( by adding &format=xml to the end of the url) i would like
to capture the response from the Google Desktop server, (on the local
machine) and save that file into memory, then write a text file from one of
the fields in the document like so:
Dim myDoc as xmldocument
Dim ofile as io.file
Dim owriter as streamwriter = ofile.createtext(pathtotextfile)
owriter.writeline(myDoc.documentelement.childnodes(0).childnodes(3).innertext.tostring())
owriter.flush()
My problem is getting the myDoc. I am unsure of how to 'capture' the
response from the server. In the first version, I was forced to call ie and
navigate, then use the WSHShell.SendKeys() method to send an ALT, then DOWN,
DOWN,DOWN, DOWN, DOWN, ENTER,filename,Enter. This process is stupid, I
know, but the only thing i could figure out in my allotted time period. So
this method saved the xml document to disk, then I used a separate program
to open those files from disk, and perform the text-file writing.
So am I really far off by looking at the System.Web.dll? I was looking at
the HTTPResponse Class and the HTTPRequest Class, and thier associated help
in the MSDN library, but I am unsure of how to implement these classes to
accomplish my task.
Thanks ever so much.
Steve
Again, let me thank everyone who has helped in the past. Can't wait till I
can help out with some advice of my own.
Now, I am building an app that wishes to retrieve the output of Google
Desktop. It is very simple, I wish to send an http request asking for the
results in XML. ( by adding &format=xml to the end of the url) i would like
to capture the response from the Google Desktop server, (on the local
machine) and save that file into memory, then write a text file from one of
the fields in the document like so:
Dim myDoc as xmldocument
Dim ofile as io.file
Dim owriter as streamwriter = ofile.createtext(pathtotextfile)
owriter.writeline(myDoc.documentelement.childnodes(0).childnodes(3).innertext.tostring())
owriter.flush()
My problem is getting the myDoc. I am unsure of how to 'capture' the
response from the server. In the first version, I was forced to call ie and
navigate, then use the WSHShell.SendKeys() method to send an ALT, then DOWN,
DOWN,DOWN, DOWN, DOWN, ENTER,filename,Enter. This process is stupid, I
know, but the only thing i could figure out in my allotted time period. So
this method saved the xml document to disk, then I used a separate program
to open those files from disk, and perform the text-file writing.
So am I really far off by looking at the System.Web.dll? I was looking at
the HTTPResponse Class and the HTTPRequest Class, and thier associated help
in the MSDN library, but I am unsure of how to implement these classes to
accomplish my task.
Thanks ever so much.
Steve