EcoStruxure Geo SCADA Expert Forum
Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-07-16 02:09 AM . Last Modified: 2023-05-03 12:02 AM
Hi,
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.
Thanks,
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-07-18 03:44 PM
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-07-16 08:26 PM
"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:
https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ms766431(v=vs.85)
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).
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-07-17 12:56 AM
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.
Thanks, David.
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
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-07-17 09:30 PM
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.
For GET
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
https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ms760236(v=vs.85)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-07-18 03:44 PM
Hi,
I only attached part snippet.
All done now.
Thanks,
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-07-19 08:55 PM
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.
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.