Sign In Help
Schneider Electric
HelpSign In
Schneider Electric Exchange
  • Home
  • Collaborate
  • Develop
  • Shop
Home Collaborate Develop Shop Log in or Register Help

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.
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
  • Home
  • Collaborate
  • Exchange Community
  • :
  • SCADA & Telemetry Solutions
  • :
  • Geo SCADA Expert Forum
  • :
  • Re: Query Database through XML-SOAP
Community Menu
  • Forums
    • By Topic
        • EcoStruxure IT
          • EcoStruxure IT forum
        • Industrial Automation
          • Industry Automation and Control Forum
          • Alliance System Integrators Forum
          • Machine Solutions in the Digital Transformation
          • EcoStruxure Automation Expert / IEC 61499 Forum
          • Industrial Edge Computing Forum
          • Level and Pressure Instrumentation Forum
          • Modicon User Group
          • PLC Club Indonesia
          • SEE Automation Club Forum
          • Fabrika ve Makina Otomasyonu Çözümleri
          • Форум по промышленной автоматизации СНГ
        • SCADA & Telemetry Solutions
          • Geo SCADA Expert Forum
          • SCADA and Telemetry Devices Forum
        • Power Distribution IEC
          • Power Distribution and Digital
          • Power Standards & Regulations
          • Paneelbouw & Energie Distributie
        • Power Distribution Softwares
          • EcoStruxure Power Design Forum
          • SEE Electrical Building+ Forum
          • LayoutFAST User Group Forum
        • Solutions for your Business
          • Solutions for Food & Beverage Forum
          • Solutions for Healthcare Forum
    • By Segment
        • Food & Beverage
          • Solutions for Food & Beverage Forum
        • Healthcare
          • Solutions for Healthcare Forum
      • EcoStruxure IT
        • EcoStruxure IT forum
      • Industrial Automation
        • Industry Automation and Control Forum
        • Alliance System Integrators Forum
        • Machine Solutions in the Digital Transformation
        • EcoStruxure Automation Expert / IEC 61499 Forum
        • Industrial Edge Computing Forum
        • Level and Pressure Instrumentation Forum
        • Modicon User Group
        • PLC Club Indonesia
        • SEE Automation Club Forum
        • Fabrika ve Makina Otomasyonu Çözümleri
        • Форум по промышленной автоматизации СНГ
      • SCADA & Telemetry Solutions
        • Geo SCADA Expert Forum
        • SCADA and Telemetry Devices Forum
      • Power Distribution IEC
        • Power Distribution and Digital
        • Power Standards & Regulations
        • Paneelbouw & Energie Distributie
      • Power Distribution Softwares
        • EcoStruxure Power Design Forum
        • SEE Electrical Building+ Forum
        • LayoutFAST User Group Forum
      • Solutions for your Business
        • Solutions for Food & Beverage Forum
        • Solutions for Healthcare Forum
      • Food & Beverage
        • Solutions for Food & Beverage Forum
      • Healthcare
        • Solutions for Healthcare Forum
  • Blogs
    • By Topic
        • Industrial Automation
          • Industrial Edge Computing Blog
          • Industry 4.0 Blog
          • Industrie du Futur France
        • SCADA & Telemetry Solutions
          • SCADA and Telemetry Blog
        • Power Distribution IEC
          • Power Events & Webinars
          • Power Foundations Blog
        • Power Distribution NEMA
          • NEMA Power Foundations Blog
        • Power Distribution Softwares
          • EcoStruxure Power Design Blog
          • SEE Electrical Building+ Blog
        • Solutions for your Business
          • Solutions for Food & Beverage Blog
          • Solutions for Healthcare Blog
          • Solutions for Retail Blog
        • Community experts & publishers
          • Publishers Community
    • By Segment
        • Food & Beverage
          • Solutions for Food & Beverage Blog
        • Healthcare
          • Solutions for Healthcare Blog
        • Retail
          • Solutions for Retail Blog
      • Industrial Automation
        • Industrial Edge Computing Blog
        • Industry 4.0 Blog
        • Industrie du Futur France
      • SCADA & Telemetry Solutions
        • SCADA and Telemetry Blog
      • Power Distribution IEC
        • Power Events & Webinars
        • Power Foundations Blog
      • Power Distribution NEMA
        • NEMA Power Foundations Blog
      • Power Distribution Softwares
        • EcoStruxure Power Design Blog
        • SEE Electrical Building+ Blog
      • Solutions for your Business
        • Solutions for Food & Beverage Blog
        • Solutions for Healthcare Blog
        • Solutions for Retail Blog
      • Community experts & publishers
        • Publishers Community
      • Food & Beverage
        • Solutions for Food & Beverage Blog
      • Healthcare
        • Solutions for Healthcare Blog
      • Retail
        • Solutions for Retail Blog
  • Ideas
        • Industrial Automation
          • Modicon Ideas & new features
        • SCADA & Telemetry Solutions
          • Geo SCADA Expert Ideas
          • SCADA and Telemetry Devices Ideas
  • Knowledge Center
    • Building Automation Knowledge Base
    • Industrial Automation How-to videos
    • Ask Exchange
    • Digital E-books
    • Success Stories Corner
    • Power Talks
  • Events & Webinars
  • Support
    • User Guide
    • Leaderboard
    • Releases Notes
How can we help?
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: 
49528members
Join Now
242876posts
Join Now

Query Database through XML-SOAP

Options
  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Back to Geo SCADA Expert Forum
jleon
Ensign jleon
Ensign
‎2020-10-14 08:23 AM
0 Likes
5
427
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-10-14 08:23 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
  • Scripting
Tags (13)
  • 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
Share
Reply
  • All forum topics
  • Previous Topic
  • Next Topic
5 Replies 5
BevanWeiss
Admiral BevanWeiss
Admiral
‎2020-10-14 09:04 PM
0 Likes
4
417
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-10-14 09:04 PM

Re: Query Database through XML-SOAP

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 (13)
  • 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
Share
Reply
jleon
Ensign jleon
Ensign
‎2020-10-15 09:39 PM
0 Likes
3
390
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-10-15 09:39 PM

Re: Query Database through XML-SOAP

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 (13)
  • 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
Share
Reply
BevanWeiss
Admiral BevanWeiss
Admiral
‎2020-10-16 10:26 PM
0 Likes
2
379
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-10-16 10:26 PM

Re: Query Database through XML-SOAP

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

 

https://tprojects.schneider-electric.com/telemetry/display/public/CS/Using+SOAP+interface+to+connect...

 

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 (6)
  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Share
Reply
jleon
Ensign jleon
Ensign
‎2020-10-30 07:58 AM
0 Likes
1
309
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-10-30 07:58 AM

Re: Query Database through XML-SOAP

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 (6)
  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Share
Reply
BevanWeiss
Admiral BevanWeiss
Admiral
‎2020-11-01 05:37 PM
0 Likes
0
302
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-11-01 05:37 PM

Re: Query Database through XML-SOAP

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 (6)
  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Share
Reply
Top Experts
User Count
BevanWeiss
Admiral BevanWeiss
1
See More Top Experts
Find a Service Provider
Find a certified partner to help you address your integration, installation, maintenance and project needs.
View all Providers
Support

Have a question? Please contact us with details, and we will respond.

Contact Us
FAQ

Look through existing questions to find popular answers.

Learn More
About

Want to know more about Exchange and its possibilities?

Learn More

Full access is just steps away!

Join Exchange for FREE and get unlimited access to our global community of experts.

Connect with Peers & Experts

Discuss challenges in energy and automation with 30,000+ experts and peers.

Get Support in Our Knowledge Base

Find answers in 10,000+ support articles to help solve your product and business challenges.

Ask Questions. Give Solutions

Find peer based solutions to your questions. Provide answers for fellow community members!

Register today for FREE

Register Now

Already have an account?Log in

About Us FAQ Terms & Conditions Privacy Notice Change your cookie settings
©2020, Schneider Electric