469,909 Members | 1,757 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,909 developers. It's quick & easy.

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 4163
"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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Eric Wood | last post: by
3 posts views Thread by Lyle Fairfield | last post: by
1 post views Thread by Eric Wood | last post: by
17 posts views Thread by =?Utf-8?B?SmltIFJvZGdlcnM=?= | last post: by
1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.