.NETGURU
Serverxmlhttp
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngxml' list.


Andrew Munro
Hi All
I'm using serverXMLHTTP but I keep getting the response

Object required 'ResponseBlock Live='

whenever I use the following code on the line "set list objXMLReceive.getElementsByTagName("Result")"

Set objSrvHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")
set objXMLSend = Server.CreateObject("MSXML2.DOMDocument")
set objXMLReceive = Server.CreateObject("MSXML2.DOMDocument.4.0")

objXMLSend.async = false
objXMLSend.resolveExternals = false
objXMLSend.loadXML (strSTXML)

strURL = "http://10.222.0.3:5000";
objSrvHTTP.Open "POST", strURL, False

objSrvHTTP.send (objXMLSend)
Response.ContentType = "text/xml"

objXMLReceive = objSrvHTTP.responseText
dim nwXML
Response.Write (objXMLReceive)
dim child
set list = objXMLReceive.getElementsByTagName("Result")
for i = 0 to (list.length -1)
Msgbox list.item(i).xml
Next

Whereabouts am I going wrong

Many thanks in advance

Andrew
Reply to this message...
 
    
Tim Curtin
Is the "R" in results lower-case?
Also, the 'Set' command is gone from the language.

[Original message clipped]

_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com

Reply to this message...
 
    
Andrew Munro
No its Uppercase

Here's the XML that I receive back and trying to parse

<ResponseBlock Live="FALSE">
    <Response Type="AUTH">
        <OperationResponse>
    
<TransactionReference>10-9-25174</TransactionReference>
            <AuthCode>AUTH CODE:TEST</AuthCode>
            <Result>1</Result>
            <Message></Message>
            <TransactionCompletedTimestamp>2002-07-24
12:06:30</TransactionCompletedTimestamp>
    
<TransactionVerifier>AWY92DehC0P39ryhwo6g1dDKWZFvRtBxFK4vPPouR+no+JyrCnVsj5z
HJ4fyka5Ps7kpRx5W/Ei9zTLWEG149+mLWjGYN3zM+5lNTHHdQsF3lCw5cX5j3Mjow7+fuL9ll1Z
IGfqpmahXfBkz+Sqcu1UqylEwdLuJ29lNFvsv7yeU=</TransactionVerifier>
        </OperationResponse>
        <Order>
            <OrderReference>Order0001</OrderReference>
            <OrderInformation>This is a test
order</OrderInformation>
        </Order>
        <Optional>
            <MyUniqueReference>123456789</MyUniqueReference>
            <Shipping>
                <CustomerInfo>
                    <Address1>Somewhere Else</Address1>
                </CustomerInfo>
            </Shipping>
        </Optional>
    </Response>
</ResponseBlock>

-----Original Message-----
From: Tim Curtin [mailto:Click here to reveal e-mail address]
Sent: 25 July 2002 00:20
To: aspngxml
Subject: [aspngxml] Re: Serverxmlhttp

Is the "R" in results lower-case?
Also, the 'Set' command is gone from the language.

[Original message clipped]

_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com

| [aspngxml] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngxml.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

Reply to this message...
 
    
Tim Curtin
objXMLReceive = objSrvHTTP.responseText
Should be: objXMLReceive.LoadXML objSrvHTTP.RespenseText

[Original message clipped]

_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx

Reply to this message...
 
 




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification