I'm using an ASP 3.0 page to query the USPS site for shipping rate info using the ServerXMLHTTP.3.0 object. The code is as follows:
set objSrvHTTP = Server.CreateObject("Msxml2.ServerXMLHTTP.3.0")
objSrvHTTP.open "GET", "http://production.shippingapis.com/ShippingAPI.dll?API=RateV2&XML=" & xmlDoc.xml, False
The request is successful, as indicated when I pretty print the resulting response like this:
Response.ContentType = "text/xml"
The result is a well-formed XML document in the expected format. However, when I try to parse the actual XML from objSrvHTTP.responseXML, I get nothing. It's as if the XML doesn't exist. I also tried parsing objSrvHTTP.responseXML.xml instead, but that didn't work either. I know the XML response is being returned properly (as indicated when I pretty print the responseText), but no matter what I try, I can't parse, print, or otherwise access the actual XML! I'm hoping there's a simple solution to this, since it's only a few lines of code but has been causing me no small amount of frustration...
Thanks in advance,