Hi,
I am using a 3rd party product that returns XML when
calling its exe through a URL. For instance, the
following URL calls this exe in Internet Explorer and
returns valid, well formed XML and displays it in the
browser: http://server/app/livelink.exe?
func=search&whe re1=report&outp utformat=xml
My goal: I want to send this http request in VB.NET code,
in ASP.NET and store the XML that is returned in an XML
document.
So, my general question is: How can I store the XML
returned by an http request, in an XML Document?
Thanks in Advance,
BLH 3 7198
You can store it in an xml document if that is what you will need to do with
it.
if you are just going to store it in a database or drive, just use a string.
you can just use the response.GetRes ponseStream() of the HttpWebResponse
and pass it into the Load method of the XmlDocument.
XmlDocument doc = new XmlDocument();
doc.Load(respon se.GetResponseS tream())
be careful, if it is not valid xml, it can throw an error.
--
Joe Feser [Xml MVP] http://www.fesersoft.com/
..Net, XML, XSLT, SQL
Free Code, Articles and Information.
"BLH" <bl*@rtp.com> wrote in message
news:0a******** *************** *****@phx.gbl.. . Hi,
I am using a 3rd party product that returns XML when calling its exe through a URL. For instance, the following URL calls this exe in Internet Explorer and returns valid, well formed XML and displays it in the browser:
http://server/app/livelink.exe? func=search&whe re1=report&outp utformat=xml
My goal: I want to send this http request in VB.NET code, in ASP.NET and store the XML that is returned in an XML document.
So, my general question is: How can I store the XML returned by an http request, in an XML Document?
Thanks in Advance, BLH
Thanks for the reply Joe. Unfortunately, the exe that is
returning the XML must be doing things a bit strangely.
When I actually stream the contents of GetResponseStre am()
to a file, instead of the actual XML, I get the following:
<HTML>
<!-- File: redirectmeta.ht ml -->
<HEAD>
<TITLE>Liveli nk - Redirection</TITLE>
<META HTTP-EQUIV="Refresh" CONTENT="0;
URL=/us_ll9103tst/livelink.exe?
func=search& ;lookfor1=allwo rds&where1= report&out
putformat=xml">
</HEAD>
</HTML>
<!-- End File: redirectmeta.ht ml -->
It seems as if the livelink.exe is going through a two
step process where it:
1) accepts the request and sends a redirection response.
2) whatever it redirects the request to processes the
request and sends the XML as the response.
I am getting the response for #1 above, which is the
redirection... I think.
Anyway, thanks for the reply.
BLH -----Original Message----- You can store it in an xml document if that is what you
will need to do withit.
if you are just going to store it in a database or drive,
just use a string. you can just use the response.GetRes ponseStream() of the
HttpWebResponse and pass it into the Load method of the XmlDocument.
XmlDocument doc = new XmlDocument(); doc.Load(respo nse.GetResponse Stream())
be careful, if it is not valid xml, it can throw an error.
-- Joe Feser [Xml MVP] http://www.fesersoft.com/ ..Net, XML, XSLT, SQL Free Code, Articles and Information.
"BLH" <bl*@rtp.com> wrote in message news:0a******* *************** ******@phx.gbl. .. Hi,
I am using a 3rd party product that returns XML when calling its exe through a URL. For instance, the following URL calls this exe in Internet Explorer and returns valid, well formed XML and displays it in the browser:
http://server/app/livelink.exe? func=search&whe re1=report&outp utformat=xml
My goal: I want to send this http request in VB.NET
code, in ASP.NET and store the XML that is returned in an XML document.
So, my general question is: How can I store the XML returned by an http request, in an XML Document?
Thanks in Advance, BLH
.
yes it is. For some reason they set up the site for a web browser, not a
service.
Is the status returned a 302?
--
Joe Feser [Xml MVP] http://www.fesersoft.com/
..Net, XML, XSLT, SQL
Free Code, Articles and Information.
"BLH" <bl*@rtp.com> wrote in message
news:08******** *************** *****@phx.gbl.. . Thanks for the reply Joe. Unfortunately, the exe that is returning the XML must be doing things a bit strangely.
When I actually stream the contents of GetResponseStre am() to a file, instead of the actual XML, I get the following:
<HTML> <!-- File: redirectmeta.ht ml --> <HEAD> <TITLE>Liveli nk - Redirection</TITLE> <META HTTP-EQUIV="Refresh" CONTENT="0; URL=/us_ll9103tst/livelink.exe? func=search& ;lookfor1=allwo rds&where1= report&out putformat=xml"> </HEAD> </HTML> <!-- End File: redirectmeta.ht ml -->
It seems as if the livelink.exe is going through a two step process where it:
1) accepts the request and sends a redirection response. 2) whatever it redirects the request to processes the request and sends the XML as the response.
I am getting the response for #1 above, which is the redirection... I think.
Anyway, thanks for the reply. BLH-----Original Message----- You can store it in an xml document if that is what you will need to do withit.
if you are just going to store it in a database or drive, just use a string. you can just use the response.GetRes ponseStream() of the
HttpWebResponse and pass it into the Load method of the XmlDocument.
XmlDocument doc = new XmlDocument(); doc.Load(respo nse.GetResponse Stream())
be careful, if it is not valid xml, it can throw an error.
-- Joe Feser [Xml MVP] http://www.fesersoft.com/ ..Net, XML, XSLT, SQL Free Code, Articles and Information.
"BLH" <bl*@rtp.com> wrote in message news:0a******* *************** ******@phx.gbl. .. Hi,
I am using a 3rd party product that returns XML when calling its exe through a URL. For instance, the following URL calls this exe in Internet Explorer and returns valid, well formed XML and displays it in the browser:
http://server/app/livelink.exe? func=search&whe re1=report&outp utformat=xml
My goal: I want to send this http request in VB.NET code, in ASP.NET and store the XML that is returned in an XML document.
So, my general question is: How can I store the XML returned by an http request, in an XML Document?
Thanks in Advance, BLH
.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: MD |
last post by:
I am trying to create a dynamic SQL statement to create a view.
I have a stored procedure, which based on the parameters passed calls
different stored procedures. Each of this sub stored procedure creates
a string of custom SQL statement and returns this string back to the
main stored procedure.
This SQL statements work fine on there own. The SQL returned from the
sub stored procedure are returned fine. The datatype of the variable
that...
|
by: jab |
last post by:
Je veux lier (join) une table qui se trouve dans une database avec une
qui se trouve dans une autre database. Les 2 databases sont sur le
même serveur en l'occurence DB2/NT 7.2.9. J'ai créé un wrapper avec le
control center (j'ai utilisé DRDA) et ensuite j'ai voulu créé le
serveur mais avec le wizard, il ne me présente pas mes tables !
J'ai donc essayé en ligne de commande. J'ai essayé la commande
suivante:
CREATE SERVER TEST TYPE...
|
by: dog |
last post by:
I've seen plenty of articles on this topic but none of them have been
able to solve my problem.
I am working with an Access 97 database on an NT4.0 machine, which has
many Access reports.
I want my users to be able to select a report, click on a command
button on a form, which will then automatically create the report as a
pdf file and save it to the user's machine.
I am using Adobe Acrobat (5.0 I think) and have Adobe Distiller as a
|
by: ASP Yaboh |
last post by:
I have an ArrayList of data gathered from a database. I want to create a web
page from this data by creating a <table>, each cell in each row displays the
appropriate data. One of those cells in each row needs a <textarea> control.
The background supporting classes are completed, the only task left now is
to create the web page. I am at a loss on how to create the table in the page
populated by the data. Previously, I would have just...
|
by: mohins |
last post by:
I am getting the error while I am trying to connect to Oracle with my code in ASP.NET, this code is working in another machine, but it fails in my laptop, giving the below error.
Could not create an environment: OCIEnvCreate returned -1.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
...
| |
by: Rahul B |
last post by:
Hi,
I have a user UCLDEV1 which is a part of staff and a
group(db2schemagrp1) to which i have not given any permissions.
The authorizations of that user are shown as
db2 =get authorizations
Administrative Authorizations for Current User
|
by: =?Utf-8?B?UGV0ZXI=?= |
last post by:
I want to create a new column in a datatable from two existing columns. I
have no problem to create the new column using the datatable.columns.add
method. The problem is the value of the new column may become system.dbnull
since one of the two existing columns may have system.dbnull. How can I fix
it so the new column will get the value of the other column even the other
column is system.dbnull?
|
by: Paul Childs |
last post by:
Hi folks,
I'll start off with the code I wrote...
(ActivePython 2.4 on Windows XP SP2)
-------------------------------
class FlightCondition(object):
lsf =
vto =
|
by: Alvin SIU |
last post by:
Hi all,
I have a table in Db2 v8 like this:
Team Name Role
------ -------- ---------------------
A Superman Leader
A Batman Member
A WonderWoman Member
B Alvin Leader
|
by: sarega |
last post by:
Hi,
Here I have an array returned that is returned in responseText from the server. Based on the output that is returned by the server I have to dynamically create a checkbox.
function StateChanged() {
if(xmlHttp.readyState == 4) {
xyz=xmlHttp.responseText;
if(xyz!="false") {
alert("true");
Here I have to add a function to create a checkbox
}
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |