This question was originally posted on DCIM Support by Neil Crum on 2019-02-26
I am trying to find the sensor ID of a specific sensor in DCE so I can call it using SOAP but it doesn't seem to be in any of the columns. Is this a value I need to assign or am I looking in the wrong place?
To clarify I need the ID to use in the following field:
<isx:ISXCElementID>?</isx:ISXCElementID>
Thank you
(CID:140708326)
Solved! Go to Solution.
This answer was originally posted on DCIM Support by Glenn Martin on 2019-02-26
Hi Neil,
First, you need to have the ID for the device. The following SOAP request should get you a list of devices discovered on your DCE server.
http://<dce_server>/integration/services/ISXCentralDeviceService_v2_0
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:isx="http://www.apc.com/stdws/xsd/ISXCentralDevices-v2">
<soapenv:Header/>
<soapenv:Body>
<isx:getAllDevicesRequest>
<!--Optional:-->
<isx:locale>?</isx:locale>
</isx:getAllDevicesRequest>
</soapenv:Body>
</soapenv:Envelope>
Your response should be a sequence of <ns2:ISXCDevice>. The Device ID you need is enclosed in <ns2:id> tags.
Once you have that, you can use this next SOAP request to get a list of sensors for a given device:
http://<dce_server>/integration/services/ISXCentralSensorService_v2_0
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:isx="http://www.apc.com/stdws/xsd/ISXCentralSensors-v2">
<soapenv:Header/>
<soapenv:Body>
<isx:getSensorsForDeviceRequest>
<isx:ISXCElementID>PUT_DEVICE_ID_HERE</isx:ISXCElementID>
</isx:getSensorsForDeviceRequest>
</soapenv:Body>
</soapenv:Envelope>
Your response should be a series of <ns2:ISXCSensor>, and again, the sensor ID you need is enclosed in <ns2:id> tags.
Hope this answers your question.
Regards,
Glenn Martin
(CID:140708356)
This answer was originally posted on DCIM Support by Glenn Martin on 2019-02-26
Hi Neil,
First, you need to have the ID for the device. The following SOAP request should get you a list of devices discovered on your DCE server.
http://<dce_server>/integration/services/ISXCentralDeviceService_v2_0
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:isx="http://www.apc.com/stdws/xsd/ISXCentralDevices-v2">
<soapenv:Header/>
<soapenv:Body>
<isx:getAllDevicesRequest>
<!--Optional:-->
<isx:locale>?</isx:locale>
</isx:getAllDevicesRequest>
</soapenv:Body>
</soapenv:Envelope>
Your response should be a sequence of <ns2:ISXCDevice>. The Device ID you need is enclosed in <ns2:id> tags.
Once you have that, you can use this next SOAP request to get a list of sensors for a given device:
http://<dce_server>/integration/services/ISXCentralSensorService_v2_0
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:isx="http://www.apc.com/stdws/xsd/ISXCentralSensors-v2">
<soapenv:Header/>
<soapenv:Body>
<isx:getSensorsForDeviceRequest>
<isx:ISXCElementID>PUT_DEVICE_ID_HERE</isx:ISXCElementID>
</isx:getSensorsForDeviceRequest>
</soapenv:Body>
</soapenv:Envelope>
Your response should be a series of <ns2:ISXCSensor>, and again, the sensor ID you need is enclosed in <ns2:id> tags.
Hope this answers your question.
Regards,
Glenn Martin
(CID:140708356)
This comment was originally posted on DCIM Support by Neil Crum on 2019-02-26
Hi Glenn,
Thank you for the quick response. This was exactly what I was looking for.
Appreciate it
(CID:140708366)
This question is closed for comments. You're welcome to start a new topic if you have further comments on this issue.
Discuss challenges in energy and automation with 30,000+ experts and peers.
Find answers in 10,000+ support articles to help solve your product and business challenges.
Find peer based solutions to your questions. Provide answers for fellow community members!