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

Join our "Ask Me About" community webinar on May 20th at 9 AM CET and 5 PM CET to explore cybersecurity and monitoring for Data Center and edge IT. Learn about market trends, cutting-edge technologies, and best practices from industry experts.
Register and secure your Critical IT infrastructure

DCE SOAP API using python

EcoStruxure IT forum

Schneider Electric support forum about installation and configuration for DCIM including EcoStruxure IT Expert, IT Advisor, Data Center Expert, and NetBotz

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
  • EcoStruxure IT
  • EcoStruxure IT forum
  • DCE SOAP API using python
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
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
Cory_McDonald
Admiral Cory_McDonald Admiral
124
Jef
Admiral Jef Admiral
108
gsterling
Captain gsterling Captain
71
APC_Steve
Captain APC_Steve Captain
62
View All

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to EcoStruxure IT forum
Solved
Anonymous user
Not applicable

Posted: ‎2021-08-14 06:23 AM

0 Likes
5
2522
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • 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-08-14 06:23 AM

DCE SOAP API using python

Hello All,

I am trying to use SOAP API to test getting sensor values from DCE using python.

I am using the V2_0 WISDL services

1) Use "initializeSensorService" to initialize the service - This returns true

2) Used getSensorsForDevice to get all the sensors available for a device by giving device id.

Now I want to receive sensor data using getSensordata by providing a corresponding sensor id. But I am getting missing ISXCElement ID.

 

I tried the python request module:

from requests.auth import HTTPBasicAuth
from requests import Session
from zeep import Client
from zeep.transports import Transport

def main():
    user = "XXXXXX"
    password = "XXXXXX"
    session = Session()
    session.verify = False
    session.auth = HTTPBasicAuth(user, password)
    client = Client('https://XX.XX.XX.XX/integration/services/ISXCentralSensorService_v2_0?wsdl', transport=Transport(session=session))
    response=client.service.getSensorData('SENSOR ID')
    print(response)

 

 

Does anyone have any Python examples of pulling information via the SOAP API from Expert?

Thanks

Labels
  • Labels:
  • Data Center Expert
  • Tags:
  • english
Reply

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

  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
Shaun
Commander Shaun Commander
Commander

Posted: ‎2021-08-16 01:38 AM . Last Modified: ‎2021-08-16 01:48 AM

0 Likes
4
2499
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • 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-08-16 01:38 AM . Last Modified: ‎2021-08-16 01:48 AM

Hi @Anonymous user,

 

I had a similar problem with zeep - it's something to do with how it's mapping named parameters (in the API) to positional parameters, in this specific example ISXElementID ends up not being the first parameter, locale does.  Try:

 

 response=client.service.getSensorData('?', 'SENSOR ID')

 

Sending the API ? for a locale will request the default locale (there is only one locale on the API last I looked, so I'm happy with the default).  Then your sensorID becomes the second positional parameter and it should be much happier.

See Answer In Context

  • Tags:
  • english
Reply

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

Replies 5
Shaun
Commander Shaun Commander
Commander

Posted: ‎2021-08-16 01:38 AM . Last Modified: ‎2021-08-16 01:48 AM

0 Likes
4
2500
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • 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-08-16 01:38 AM . Last Modified: ‎2021-08-16 01:48 AM

Hi @Anonymous user,

 

I had a similar problem with zeep - it's something to do with how it's mapping named parameters (in the API) to positional parameters, in this specific example ISXElementID ends up not being the first parameter, locale does.  Try:

 

 response=client.service.getSensorData('?', 'SENSOR ID')

 

Sending the API ? for a locale will request the default locale (there is only one locale on the API last I looked, so I'm happy with the default).  Then your sensorID becomes the second positional parameter and it should be much happier.

  • Tags:
  • english
Reply

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

Anonymous user
Not applicable

Posted: ‎2021-08-16 04:41 AM

In response to Shaun
0 Likes
3
2492
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • 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-08-16 04:41 AM

Thank you so much Shaun for the solution and correct explanation of the problem.

  • Tags:
  • english
Reply

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

Angwenyi
Ensign Angwenyi
Ensign

Posted: ‎2021-08-16 04:59 AM

In response to Anonymous user
0 Likes
2
2485
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • 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-08-16 04:59 AM

Hi Mousumi,

 

Thank you for your question, I have a customer who is unimpressed with DCE dashboard and want's information displayed in their own format for display at their NOC.

 

Was just following your trail and wondered if SOAP API could be the solution for my customer problems, if am able to just pick the particular sensors for certain devices to display on their dashboards the way they want it.

 

Thank you and looking forward to your reply on the same.

 

Regards,

Felix

  • Tags:
  • english
Reply

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

Shaun
Commander Shaun Commander
Commander

Posted: ‎2021-08-16 07:01 AM

In response to Angwenyi
1 Like
1
2479
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • 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-08-16 07:01 AM

Hi @Angwenyi,

 

That does sound like something that should be achievable with the web-services API.

 

You can find documentation on the available methods & a manual of the data model at:

 

https://www.se.com/ww/en/product/SFWEBSVC/struxureware-data-center-expert-web-services-api/

https://dcimsupport.ecostruxureit.com/hc/en-us/articles/360039289673-Data-Center-Expert-Web-Services...

 

  • Tags:
  • english
Reply

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

Angwenyi
Ensign Angwenyi
Ensign

Posted: ‎2021-08-17 02:27 AM

In response to Shaun
0 Likes
0
2472
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • 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-08-17 02:27 AM

Hi Shaun,

 

Thank you for your prompt response.

 

Probably I should explain what my customer need, they want us to individualize alert display for each equipment.

 

For example UPS 1 should have it's own portlet showing all alerts showing just for that UPS for instance number of warning and critical alarms for UPS 1.

 

Same will apply for the other devices of their choice. 

 

I hope my explanation is vivid enough however let me know if I should clarify further.

 

Thank you.

 

Regards,

Felix 

  • Tags:
  • english
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