I am using "MSXML2.ServerXMLHTTP.6.0." within Geo SCADA VBScript.
Where can I find documentation on "MSXML2.ServerXMLHTTP.6.0." specifically for Geo SCADA VBS please.
I cant remember if I was using option 2 or three or the syntax.
"Specifically for Geo SCADA VBS" is not a thing.
The Geo SCADA Expert ViewX scripting uses the Microsoft Active Scripting engine. So this aspect is not a Schneider / Geo SCADA Expert specific thing.
The Server... etc objects are Geo SCADA Expert specific, but Microsoft's MSXML2 is NOT.
For documentation around the MSXML2 object you would need to consult Microsoft documentation.
A quick google brings up this:
Which has some code (although it looks like MS only show JScript here, not VBScript... but JScript is also an ActiveScript language... so you could just use JScript instead of VBScript).
Hi, with reference to the below code. I tried a number of variations on the fourth line yesterday (Proxy Option). But I couldn't find the right one.
I am sure I saw it working two weeks back. I hope I did.
Set objO = CreateObject("MSXML2.ServerXMLHTTP.6.0") 'Encode the username and password here strUserPass = base64_Encode(strUserName+":"+strPassword) objO.setOption 2, https://proxy.xx.xxxxxxxxxxx.xxxxxxxx, "8080" objO.setOption 3, "" objO.setTimeouts 10000, 10000, 10000, 10000 objO.open "POST", strURL, False
I think that given none of this is Geo SCADA Expert specific (it's all just VBScript and Microsoft core libraries) you will be better off on something like Stack Overflow for it.
I do note that the code sample you've provided has numerous syntactical errors... so you might want to fix these, along with aligning your existing code structure closer to the Microsoft examples.. e.g.
var objSrvHTTP; objSrvHTTP = Server.CreateObject ("Msxml2.ServerXMLHTTP.6.0"); objSrvHTTP.open ("GET","http://someotherserver/respond.asp", false); objSrvHTTP.send (); Response.ContentType = "text/xml"; Response.Write (objSrvHTTP.responseXML.xml);
or for POST with an XML body
var objSrvHTTP; var objXMLDocument; objSrvHTTP = Server.CreateObject ("Msxml2.ServerXMLHTTP.6.0"); objXMLDocument = Server.CreateObject ("Msxml2.DOMDocument.6.0"); objXMLDocument.async= false; objXMLDocument.loadXML ("<msg><id>1</id></msg>"); objSrvHTTP.open ("POST","http://someotherserver/respond.asp",false); objSrvHTTP.send (objXMLDocument); Response.ContentType = "text/xml"; Response.Write (objSrvHTTP.responseXML.xml);
If you are indeed trying to set the Proxy options, then setProxy seems like the more appropriate method
Perhaps you could add some more detail on what the actual solution was.
Your selected 'solution' appears to contain no details, so it wouldn't be at all helpful to anyone else.
Discuss challenges in energy and automation with 30,000+ experts and peers.
Find answers in 10,000+ support articles to help solve your product and business challenges.
Find peer based solutions to your questions. Provide answers for fellow community members!