tryout for SOAP raises an error
I love your book. It has really clarified for me what XML is and how it can be used. The examples are clear and substantial and cover enough territory to be useful.
However, I am having a problem with the tryout examples in chapter 10. But the ones in chapter 10 cause an error. Since I am not well versed in Microsoft com objects or Visual Basic, I really don't know what it could be. The error I get occurs in the same place for both the example with the SOAP Envelope and the one without.
The error box points to the following line of code. It says that an object is required.
xdDoc = xhHTTP.responseXML;
The next line, is the one that comes up highlighted in the editor if I elect to debug.
if(xdDoc.documentElement.nodeName == "Error")
It looks to me like we just pointed to an object, but I am not familiar enough with this context to know why it failed.
Could it be that Microsoft has changed the rules since the book was published?
Can you tell me how to make this work?
|