Welcome to the new Schneider Electric Community

It's your place to connect with experts and peers, get continuous support, and share knowledge.

  • Explore the new navigation for even easier access to your community.
  • Bookmark and use our new, easy-to-remember address (community.se.com).
  • Get ready for more content and an improved experience.

Contact SchneiderCommunity.Support@se.com if you have any questions.

Close
Invite a Co-worker
Send a co-worker an invite to the Exchange portal.Just enter their email address and we’ll connect them to register. After joining, they will belong to the same company.
Send Invite Cancel
84247members
353347posts

MSXML2.ServerXMLHTTP.6.0

EcoStruxure Geo SCADA Expert Forum

Find out how SCADA systems and networks, like EcoStruxure Geo SCADA Expert, help industrial organizations maintaining efficiency, processing data for smarter decision making with IoT, RTU and PLC devices.

Solved
DavidSkilbeck
Lt. Commander
Lt. Commander
0 Likes
5
3458

MSXML2.ServerXMLHTTP.6.0

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,

 

 

 


Accepted Solutions
DavidSkilbeck
Lt. Commander
Lt. Commander
0 Likes
1
3430

Re: MSXML2.ServerXMLHTTP.6.0

Hi,

I only attached part snippet.

All done now.

 

Thanks,

See Answer In Context

5 Replies 5
BevanWeiss
Spock
Spock
4
3445

Re: MSXML2.ServerXMLHTTP.6.0

"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).


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..
DavidSkilbeck
Lt. Commander
Lt. Commander
0 Likes
3
3441

Re: MSXML2.ServerXMLHTTP.6.0

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

 

 

 

 

BevanWeiss
Spock
Spock
0 Likes
2
3437

Re: MSXML2.ServerXMLHTTP.6.0

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)


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..
DavidSkilbeck
Lt. Commander
Lt. Commander
0 Likes
1
3431

Re: MSXML2.ServerXMLHTTP.6.0

Hi,

I only attached part snippet.

All done now.

 

Thanks,

BevanWeiss
Spock
Spock
0 Likes
0
3415

Re: MSXML2.ServerXMLHTTP.6.0

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.


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..