Re: Long-running ASP page using ServerXMLHTTP...

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Sam Greenhalgh (zapthedingbat_at_zapthedingbat.com)
Date: 03/08/04


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
>
>



Relevant Pages

  • Long-running ASP page using ServerXMLHTTP...
    ... seconds to execute due to slow response from the 3rd party which we have no ... 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 ... are allowed to execute while we are waiting for the response from the 3rd ...
    (microsoft.public.inetserver.asp.db)
  • Re: Response.Flush: Differences between IIS 6.0 and 5.0?
    ... I do not expect my ASP script to continue running until the ... ASP did send the entire response buffer to the client prior to continuing ... 'See how long it takes to Flush to the browser ... Browsing to this ASP page hosted on an IIS 5.0 server yield the following ...
    (microsoft.public.inetserver.iis)
  • RE: IISAdmPwd
    ... at the first logon time which is restricted by the policy. ... virtual directory in one web site to point to that folder. ... supplies the textboxes for the users to modify their password. ... check whether asp is supported in the web service node of IIS mmc. ...
    (microsoft.public.inetserver.iis.security)
  • Re: Iisstate thread I don t understand
    ... Thread is waiting for a lock to be released. ... > Owning thread System ID: ... Unable to locate ASP page. ... Stack unwind information not available. ...
    (microsoft.public.inetserver.iis)
  • Re: Best way to deal with user forms
    ... Thanks for the response. ... Your point is taken about sending email only in text format. ... > If your site is hosted on a Windows IIS server and you can use ASP and Access, ... > accomplished using the FP database components with no additional cost involved. ...
    (microsoft.public.frontpage.client)