473,466 Members | 1,396 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Execute ASP file from ASP file

Hi,

I've little problem... I try to execute asp file ( which return XML file )
and use the result it in my asp script :

set xml = Server.CreateObject("MSXML2.DOMDocument")
xml.async=false
xml.load(Server.Execute("script.xml.asp"))

but it doesn;t work !

I cannot use full path to script : http://somedomain.com/script.xml.asp !

Is there any posibility to execute asp script and return result back to
asp?!

regards

Lujcon
Jul 19 '05 #1
3 4294
"Tomasz Ludwiniak" wrote...
set xml = Server.CreateObject("MSXML2.DOMDocument")
xml.async=false
xml.load(Server.Execute("script.xml.asp"))

but it doesn;t work !


I'm probably wrong, but as you are creating an object for the XML Dom,
shouldn't the file you are trying to load with xml.load be a well-formed XML
document?

If you want the ASP to do something too - just use an include

<!--#Include File="script.asp"-->

etc...

I'm probably wrong though - haven't played a lot with XML yet...

Regards

Rob
Jul 19 '05 #2
The file I'm trying to load is weel formated XML document
for example:

script.xml.asp:
-----------------------------------
<%
Response.ContentType="text/xml"
%>
<root>
<node>test node</node>
<%
'some vb instructions
%>
</root>
------------------------------------

Is there any possibility to execute this asp script and load result to DOM
document ?!.
When i use Server.Execute method the result will be send to client browser
( not to xml.load method )
When i use full path: xml.load("http://somedomain.com/script.xml.asp")... i
have to restart iss. I think it is because iis is going to execute
script.xml.asp after executing current script, but current script is waiting
for results from script.xml.asp....Woww... ;)

regards

Lujcon

"Rob Meade" <ro********@NO-SPAM.kingswoodweb.net> wrote in message
news:CJ*********************@news-text.cableinet.net...
"Tomasz Ludwiniak" wrote...
set xml = Server.CreateObject("MSXML2.DOMDocument")
xml.async=false
xml.load(Server.Execute("script.xml.asp"))

but it doesn;t work !
I'm probably wrong, but as you are creating an object for the XML Dom,
shouldn't the file you are trying to load with xml.load be a well-formed

XML document?

If you want the ASP to do something too - just use an include

<!--#Include File="script.asp"-->

etc...

I'm probably wrong though - haven't played a lot with XML yet...

Regards

Rob

Jul 19 '05 #3
Tomasz Ludwiniak wrote:
Hi,

I've little problem... I try to execute asp file ( which return XML
file ) and use the result it in my asp script :

set xml = Server.CreateObject("MSXML2.DOMDocument")
xml.async=false
xml.load(Server.Execute("script.xml.asp"))

but it doesn;t work !

I cannot use full path to script :
http://somedomain.com/script.xml.asp !

Is there any posibility to execute asp script and return result back
to asp?!

regards

Lujcon


Use the ServerXMLHTTP object.
http://www.aspfaq.com/show.asp?id=2173

HTH,
Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Tim Williams | last post by:
I'm trying to write a simple python program to access a MySQL database. I'm having a problem with using MySQLdb to get the results of a SQL command in a cursor. Sometimes the cursor.execute works,...
0
by: Eric Wood | last post by:
We have an application that is accessed using shared drives, client executes program from server. We have already coded the program to create and save the a bat file either locally on the users...
3
by: Lyle Fairfield | last post by:
MS-SQL Server utilities Enterprise Manager and Query Analyzer will model almost any MS-SQL object as a simple script file with a default ".sql" extension. But how to "run these files? They are...
1
by: Eric Wood | last post by:
We have an application that is accessed using shared drives, client executes program from server. We have already coded the program to create and save the a bat file either locally on the users...
2
by: Sike | last post by:
Hi everyone, I've been browsing this and a few other related newsgroups trying to get my head around this problem, and so far all the trails seem to go cold, without an acceptable solution being...
17
by: =?Utf-8?B?SmltIFJvZGdlcnM=?= | last post by:
I am trying to replace a huge chunck of code that currently I incorporate with an #Include directive. The program rarely has to flow through that code, so I thought it would be better if I used...
3
by: joe jacob | last post by:
I configured apache to execute python scripts using mod_python handler. I followed below mentioned steps to configure apache. 1. In http.conf I added <Directory...
9
by: RN1 | last post by:
When a server encounters the line Response.Redirect("abcd.asp") in a ASP script, the server tells the browser that it has to be redirected to another page (which is abcd.asp, in this case)....
7
by: Service4PC | last post by:
Hi all, I've a problem... I'm writing an extension for php, and i need to execute a file php... but only the content of the file and not the file... Now I better explain: - the extension get the...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
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,...
0
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...
0
Oralloy
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,...
0
jinu1996
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.