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
84772members
354206posts

DCE Wsdl Error

EcoStruxure IT forum

A support forum for Data Center Operation, Data Center Expert, and EcoStruxure IT product users to share knowledge on installation, configuration, and general product use.

OzgurC
Cadet

DCE Wsdl Error

I want to get some sensor infotmations with soap call like power usage of some sensors by kWh. But when I try to sample reuest of  DCIM Expert with SOAP UI I got error message "com.apc.varlib.model.devices.impl.PodImpl cannot be cast to com.apc.varlib.model.sensors.Sensor" as you see in the picture. Please can you help me about problem resolution. Thanks.

Tags (1)
2 Replies 2
Shaun
Lt. Commander Lt. Commander
Lt. Commander
0 Likes
0
295

Re: DCE Wsdl Error

Hi,

 


"com.apc.varlib.model.devices.impl.PodImpl cannot be cast to com.apc.varlib.model.sensors.Sensor"

This error is raised when the ISXElementID provided to a method is a valid ID, but identifies the wrong type of object.

 

When reading these terse errors, the first part after com.apc.varlib.model usually gives the most clues - so we can read this error as "devices cannot be cast to sensors".  In this example the ID provided identified a device, where we expected the ID for a sensor - and the API can't resolve this as there isn't a 1:1 relationship between these types.

 

If you can provide more detail of what values you are expecting from this method, we can try to point you towards which methods can provide the data you want from your input.  Otherwise I believe the examples below should help clarify.

 

 

Working examples:

 

getSensorsForDevice('B1d52c9_nbSNMPEnc568D6AC0')

[{
    'ISXCNamedElement': {
        'ISXCElement': {
            'ISXCElementType': 'SENSOR',
            'id': 'B1d52c9_nbSNMPEnc568D6AC0_DEVSTATUS_1'
[...]
Returns a list of sensors for this device (as an array of ISXCElement).
 
getDeviceForSensor('B1d52c9_nbSNMPEnc568D6AC0_COMPRESSOR_RUN_HOURS')

{
    'ISXCNamedElement': {
        'ISXCElement': {
            'ISXCElementType': 'DEVICE',
            'id': 'B1d52c9_nbSNMPEnc568D6AC0'
[...]
Returns the parent device for this sensor, as an ISXElement identified 'B1d52c9_nbSNMPEnc568D6AC0'.
 
 
Error examples:
 
getSensorsForDevice('B1d52c9_nbSNMPEnc568D6AC0_COMPRESSOR_RUN_HOURS')

{
    'faultstring': "com.apc.varlib.model.devices.impl.PodImpl cannot be cast to com.apc.varlib.model.sensors.Sensor",
[...]
Indicating we provided the ID for a Device where we expected a Sensor.
 
getDeviceForSensor('B1d52c9_nbSNMPEnc568D6AC0')

{
    'faultstring': "com.apc.varlib.model.sensors.NumberSensor cannot be cast to com.apc.varlib.model.devices.Device",
[...]
Indicating we provided the ID for a Sensor where we expected a Device.
Tags (1)
Cline85283
Cadet
0 Likes
0
132

Re: DCE Wsdl Error

SOAP is a lightweight protocol for exchange of information in a decentralized, distributed environment. It is an XML based protocol that consists of three parts:

 

Tags (1)