MSXML2.ServerXMLHTTP yielding unrecognized response

Ask a Question related to ASP Components, Design and Development.

  1. #1

    Default MSXML2.ServerXMLHTTP yielding unrecognized response

    'm using a VBScript/ASP page to submit a request to a (JSP) page on a
    remote server, using "MSXML2.ServerXMLHTTP". Here's the main code I'm
    using:

    ================================
    ....

    Set oXmlServerHttp = Server.CreateObject("MSXML2.ServerXMLHTTP.3.0")
    Call oXmlServerHttp.SetTimeouts(10000, 10000, 10000, 10000)
    Call oXmlServerHttp.Open("GET", sRequestURL, True, Null, Null)
    Call oXmlServerHttp.Send()

    bResponseReceived = False
    If (oXmlServerHttp.ReadyState = 4) Then
    bResponseReceived = True
    Else
    bResponseReceived = oXmlServerHttp.WaitForResponse(30)
    End If

    ....
    ================================

    When I try to submit the call, I get the following error: "The server
    returned an invalid or unrecognized response". The script is failing
    on the line "bResponseReceived = oXmlServerHttp.WaitForResponse(30)" --
    does anybody have an idea on why it is failing, and a possible solution?

    deathtospam@gmail.com Guest

  2. Similar Questions and Discussions

    1. ServerXMLHTTP returns error 424
      On a Windows Server 2003 SP1with MSXML 6 installed. No proxy server is used. Extraction of ASP code: Set objHTTP =...
    2. Yielding a flex app
      I am creating a function with a loop that checks a variable to determine when to quit. The variable is updated when the user clicks on a UI object...
    3. DotNet WS from VB6 with MSXML2.XMLHTTP
      I'm trying to consume a WS from Excel (Office 98), seems that I can't send arguments into the WS. In order to pinpoint the problem I've written the...
    4. Help: CDML based script search yielding 0 records returns ALL of them.
      I have a database that from within FMPro 6, there's no problems. However when I transfer the simple command of doing scripted searches for certain...
    5. MSXML2.ServerXMLHTTP vs. Microsoft.XMLHTTP
      > So I looked on google and found from some discussion board that I need No, you don't. This object is not safe for server-side requests. You...
  3. #2

    Default Re: MSXML2.ServerXMLHTTP yielding unrecognized response

    With an ASYNC call, I think you need to look at priming a callback function.

    Maybe try a NON-ASYNC call and loop waiting for a "4" ReadyState.

    Brian


    Brian Staff Guest

  4. #3

    Default Re: MSXML2.ServerXMLHTTP yielding unrecognized response

    If you're doing a non-asynchronous call, it waits until
    oXmlServerHttp.Send() finishes before it returns a result -- which
    means you won't need a loop to poll the ReadyState value. And it still
    returns the same error message.....


    -= Tek Boy =-

    deathtospam@gmail.com Guest

  5. #4

    Default Re: MSXML2.ServerXMLHTTP yielding unrecognized response

    <VA.00000310.a974d0c5@bstaffw2k.jda.corp.local>
    <1135107097.120031.164520@g43g2000cwa.googlegroups .com>
    Newsgroups: microsoft.public.inetserver.asp.components
    NNTP-Posting-Host: gw.jda.com 65.160.56.2
    Path: number1.nntp.dca.giganews.com!border2.nntp.dca.gig anews.com!border1.nntp.dca.giganews.com!nntp.gigan ews.com!nx02.iad01.newshosting.com!newshosting.com !news.alt.net!msrtrans!TK2MSFTNGP08.phx.gbl!tk2msf tngp13.phx.gbl
    Lines: 1
    Xref: number1.nntp.dca.giganews.com microsoft.public.inetserver.asp.components:45797
    > If you're doing a non-asynchronous call, it waits until
    > oXmlServerHttp.Send() finishes before it returns a result -- which
    > means you won't need a loop to poll the ReadyState value. And it still
    > returns the same error message.....
    you're right...my bad!

    Brian Staff Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139