Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

We Value Your Feedback!
Could you please spare a few minutes to share your thoughts on Cloud Connected vs On-Premise Services. Your feedback can help us shape the future of services.
Learn more about the survey or Click here to Launch the survey
Schneider Electric Services Innovation Team!

Query Database through XML-SOAP

EcoStruxure Geo SCADA Expert Forum

Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • Remote Operations
  • EcoStruxure Geo SCADA Expert Forum
  • Query Database through XML-SOAP
Options
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
sbeadle
Kirk sbeadle Kirk
308
AndrewScott
Admiral AndrewScott
98
BevanWeiss
Spock BevanWeiss
91
AdamWoodlandToo
Lt. Commander AdamWoodlandToo
37
View All
Related Products
product field
Schneider Electric
EcoStruxure™ Geo SCADA Expert

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Back to EcoStruxure Geo SCADA Expert Forum
jleon
Ensign jleon
Ensign

Posted: ‎2020-10-14 08:23 AM . Last Modified: ‎2023-05-03 12:09 AM

0 Likes
6
3290
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2020-10-14 08:23 AM . Last Modified: ‎2023-05-03 12:09 AM

Query Database through XML-SOAP

Im testing the XML SOAP with a simple SQL Query, however Im not sure if Im using the correct syntax because i cant see the data and the software prompt some errors.

 

The software used is SOAPUI 5.6

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:scx6="http://serck-controls.com/webservices/SCX6/">
<soapenv:Header/>
<soapenv:Body>
<scx6:ExecuteQuery>
<scx6:SQL>SELECT TOP(5) FULLNAME FROM CDBPOINT</scx6:SQL>

</scx6:ExecuteQuery>
</soapenv:Body>
</soapenv:Envelope>

 

The connection configured is http://localhost:85/webservices/scx

 

 

Labels
  • Labels:
  • Scripting
  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA control
  • SCADA data
  • SCADA integration
  • SCADA network
  • SCADA programming
  • SCADA software
  • scada system
  • SCADA tutorial
  • SCADA web application
  • Telemetry and SCADA
Reply

Link copied. Please paste this link to share this article on your social media post.

  • All forum topics
  • Previous Topic
  • Next Topic
Replies 6
BevanWeiss
Spock BevanWeiss
Spock

Posted: ‎2020-10-14 09:04 PM

0 Likes
5
3279
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2020-10-14 09:04 PM

I think your endpoint URL is wrong.

http://localhost:85/webservices/scx

 

I think this should most likely just be:

http://localhost/webservices/scx

IIF you allow insecure HTTP... otherwise you could go with https://localhost/webservices/scx

 

 

The reason I think 85 is wrong is that if you installed the 'new' (old) IIS-based WebX then it will also install itself at port 85, and this will conflict with your ClearSCADA WebX which defaults to port 80, but which you say you have configured as port 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..
  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA control
  • SCADA data
  • SCADA integration
  • SCADA network
  • SCADA programming
  • SCADA software
  • scada system
  • SCADA tutorial
  • SCADA web application
  • Telemetry and SCADA
Reply

Link copied. Please paste this link to share this article on your social media post.

jleon
Ensign jleon
Ensign

Posted: ‎2020-10-15 09:39 PM

In response to BevanWeiss
0 Likes
4
3252
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2020-10-15 09:39 PM

Hello bevan

 

I changed the port for webX to 80 and checked the option for insecure http from the server configuration, but the software still prompt errors.

 

Could be the syntax?

  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA control
  • SCADA data
  • SCADA integration
  • SCADA network
  • SCADA programming
  • SCADA software
  • scada system
  • SCADA tutorial
  • SCADA web application
  • Telemetry and SCADA
Reply

Link copied. Please paste this link to share this article on your social media post.

BevanWeiss
Spock BevanWeiss
Spock

Posted: ‎2020-10-16 10:26 PM . Last Modified: ‎2023-04-25 03:40 AM

In response to jleon
0 Likes
3
3241
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2020-10-16 10:26 PM . Last Modified: ‎2023-04-25 03:40 AM

I'd recommend that you start with something a bit more structured before you go hand creating the SOAP requests

 

https://community.se.com/t5/Geo-SCADA-Knowledge-Base/Using-SOAP-interface-to-connect-to-Geo-SCADA/ba...

 

I believe that you could even directly import in the Web Service references if you're using a recent version of Visual Studio, and your Visual Studio environment has access to the ClearSCADA (or Geo SCADA Expert) server.

 

Then once you have something working, you could use wireshark or similar to snoop on the traffic to get the structure of the requests / responses.

 

I think you should also go back to first principles with your fault finding.  You say 'the software still prompts errors'... that means literally nothing.  Does this error say 'Buy a licence to use this software'??.. because if so, maybe you solve the problem by buying a licence to use the software... (SOAP UI is free-to-use software.. so I suspect it's not this, but you also clearly haven't told us either way..)

 

So start from the beginning, things like

  • can you ping the server
  • can you perform a TCP connection to the port that you think should work for this SOAP request
  • can you issue the most simple SOAP request to the endpoint (perhaps even an empty request which may just respond with an HTTP 200 OK response)...
  • does anything else work when trying to use SOAP UI against this same server
  • have you tried any other software
  • does ViewX have any issues when used to do the same server query

 

 


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..
  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

Link copied. Please paste this link to share this article on your social media post.

jleon
Ensign jleon
Ensign

Posted: ‎2020-10-30 07:58 AM

In response to BevanWeiss
0 Likes
2
3171
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2020-10-30 07:58 AM

Answer to your questions

 

So start from the beginning, things like

  • can you ping the server-- Yes
  • can you perform a TCP connection to the port that you think should work for this SOAP request. Yes
  • can you issue the most simple SOAP request to the endpoint (perhaps even an empty request which may just respond with an HTTP 200 OK response)... Yes
  • does anything else work when trying to use SOAP UI against this same server. Yes
  • have you tried any other software. Yes
  • does ViewX have any issues when used to do the same server query. No

 

I tried with the code  below. I can execute the query when the database is accesible by the guest user, when i configure the security, even using the object System.Net.NetworkCredential, the query is null.

 

object[] obj;
            SOAPconsole.localhost.SCXService MySoap;
            MySoap = new SOAPconsole.localhost.SCXService();

            MySoap.Url = "http://localhost/webservices/scx";
            System.Net.NetworkCredential userDefined = new System.Net.NetworkCredential("User","Password");            
            MySoap.Credentials = userDefined;
           
            try {
                obj = new object[0];
                bool limit;
                bool size;
                object[][] retobj;
                retobj = MySoap.ExecuteQuery("Select fullname from CDBObject", obj, out limit, out size);
                Console.WriteLine("Query executed. Number of elements polled: " + retobj.Length);
                for (int i = 0; i < retobj.Length; i++)
                    Console.WriteLine(retobj[i][0].ToString());
            }
            catch (Exception ex) {
                Console.WriteLine(ex.Message);
            }
            Console.ReadLine();

  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

Link copied. Please paste this link to share this article on your social media post.

BevanWeiss
Spock BevanWeiss
Spock

Posted: ‎2020-11-01 05:37 PM

In response to jleon
0 Likes
1
3164
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2020-11-01 05:37 PM

What does Wireshark say when you look at the traffic?

 

I suspect that your authentication isn't working.

I doubt that ClearSCADA will return a 401 'Authorization Request', since technically for that URL the Guest user (i.e. no authentication user) does have certain authorization, just typically it will be so low that it's meaningless (i.e. no visibility/browse permissions for any objects).

 

You probably just want to force the authentication elements into the request header rather than trying to use the NetworkCredentials.


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..
  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

Link copied. Please paste this link to share this article on your social media post.

BevanWeiss
Spock BevanWeiss
Spock

Posted: ‎2021-04-07 10:47 PM

In response to BevanWeiss
0 Likes
0
2656
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-04-07 10:47 PM

I've learnt new things about the SOAP interface.

 

Even though SOAP itself has an authentication method available (WS-S), Geo SCADA Expert instead uses cookies.

 

What is required is to send a PUT to /logon with a body of

username={USERNAME}&password={PASSWORD}&redir=/

 

This will then provide you some cookies which should be sent alongside every other HTTP request.

This info came from the Node-RED stuff that Steve Beadle did here:

https://github.com/GeoSCADA/Node-Red-GeoSCADA/blob/master/GeoSCADA.js

 

It looks like the cookies have an expiry time also, so it may require some additional consideration around that.


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..
  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

Link copied. Please paste this link to share this article on your social media post.

Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

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.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of