I am looking to use VBA from a third party application and use some object ie? to do some posting to a webservice. Has anyone used ie objects to do a post, or the xml parser or anything like that? I'm trying to find examples of how to use it.
var objDoc = new ActiveXObject("Msxml2.DOMDocument.4.0"); var objHTTP = new ActiveXObject("Msxml2.XMLHTTP.4.0"); objHTTP.open("POST", strPost, false); objHTTP.send(); objDoc = objHTTP.responseXML;
or in VBScript:
Set objDoc = CreateObject("Msxml2.DOMDocument.4.0") Set objHTTP = CreateObject("Msxml2.XMLHTTP.4.0") objHTTP.Open "POST", strPost, False objHTTP.Send objDoc = objHTTP.ResponseXML