Re: Long-running ASP page using ServerXMLHTTP...
From: Sam Greenhalgh (zapthedingbat_at_zapthedingbat.com)
Date: 03/08/04
- Next message: J. Baute: "Re: Long-running ASP page using ServerXMLHTTP..."
- Previous message: Bob Barrows [MVP]: "Re: Convert Number to Money values"
- In reply to: Barry Lloyd: "Long-running ASP page using ServerXMLHTTP..."
- Next in thread: J. Baute: "Re: Long-running ASP page using ServerXMLHTTP..."
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 8 Mar 2004 16:05:58 -0000
Put the page that is taking time to load into its own Virtual Directory in
IIS and set the Application protection on the Virtual Directory to
"Isolated". the loading time of the page wont affect any other pages.
"Barry Lloyd" <none> wrote in message
news:%235nkB5QBEHA.640@TK2MSFTNGP09.phx.gbl...
> Hi all,
> Ok, Im sure this has been covered a million times before but Ive tried
> searching and cant find anything that deals with the exact problem Im
> having.
> I have an ASP page that uses the MSXML2.ServerXMLHTTP object to retreive
> data from a 3rd party. The codein my page is as follows...
>
> ****ASP (VBScript) CODE****
> Set obj=Server.CreateObject("MSXML2.ServerXMLHTTP")
>
> sURL='http://www.somewhere.com/test.asp'
>
> With obj
> .Open "GET", sURL, True
> .Send
>
> Do Until .readyState=4
> .waitForResponse 1000
> Loop
>
> sRetVal=.responseXML.xml
> End With
> ***************************
>
> Ok, this works fine (obviously the URL is different), but takes up to 30
> seconds to execute due to slow response from the 3rd party which we have
no
> control over. The time delay in itself is not an issue...however while
this
> script is running any other requests for ASP pages are 'queued' behind it.
> So no other ASP pages execute until after this script has finished (up to
30
> seconds)
>
> Can anyone explain a way around this. Do I need to write a VB app (for
> example) to do this, allowing me to use something like DoEvents??? (I dont
> see how this will work as the ASP page will still be waiting for the
> response from the VB app rather than from the ServerXMLHTTP object) Or is
> there some way of running this page asynchronously so that other ASP pages
> are allowed to execute while we are waiting for the response from the 3rd
> party?
>
> Note: I cannot schedule this to run at a less busy time (for example), it
> has to be live as this is a quoting system and the client is waiting.
>
> Any help is much appreciated.
>
> Thanks
> Barry Lloyd
>
>
- Next message: J. Baute: "Re: Long-running ASP page using ServerXMLHTTP..."
- Previous message: Bob Barrows [MVP]: "Re: Convert Number to Money values"
- In reply to: Barry Lloyd: "Long-running ASP page using ServerXMLHTTP..."
- Next in thread: J. Baute: "Re: Long-running ASP page using ServerXMLHTTP..."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|