Troubleshooting code that uses the HTTP protocol

Overview You can solve issues encountered when using the HTTP protocol by applying the principles in this article.  By simplifying the issue into a small reproducible problem you can effectively troubleshoot and resolve most problems encountered in code that uses the HTTP protocol.  Crucial steps to troubleshooting code are: Gather Information, Simplify the Problem and…

4

msxml3.dll: Access is denied. msxml4.dll: Access is denied.

The following vb Script can fail with an “Access is denied” error message: Dim aRequestSet aRequest = CreateObject (“Microsoft.XMLHTTP”)aRequest.Open “POST”,”http://www.contoso.com/PostAccepter.aspx”,FalseaRequest.setRequestHeader “Content-Type”, “application/x-www-form-urlencoded”aRequest.Send “this is data”Wscript.Echo aRequest.responseText If you use Fiddler (http://fiddler2.com) you will see a comple of redirects to Microsoft.com.  That is the reason for this failure in my case.  By clearing the flag in…

11

How to Send SOAP call using MSXML (replace STK)

I know… This is a simple thing, but there is no documentation on it so here it is: UPDATE:  You can now use Windows Webservica API (WWSAPI) to create native code WebService calls! The SoapToolkit (STK) is out of support.  So what if you need to make a SOAP call in VB 6 or scripting? …

1