473,394 Members | 2,100 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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 4290
"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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
0
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...

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.