Issue
How to add Web Service and create Simple XML Web Service with Graphic
Product Line
EcoStruxure Building Operation
Environment
StruxureWare Building Operation site with release 1.2 or later
Cause
What are Web Services and how to add to my existing StruxureWare Building Operation site.
- How to add XML files and how to add to a project or site
- How to create values from the XML Files added
- How to make a graphic that uses the values from XML Service
Resolution
Wikipedia: A Web Service is a method of communication between two electronic devices over the web (internet). W3C: A "Web Service" as "a software system designed to support interoperable machine-to-machine interaction over a network."
Web Services:
- Are hardware, programming language, and operating system independent
- Applications written in different programming languages and running on different platforms can seamlessly exchange data over intranet or the internet using Web Services
- Web Service interfaces are supported in both the AS and ES(does not support connection over a ProxyServer)
- Like BACnet, Lon, and Modbus, you can create a Web Service interface.
- EWS Interface - EcoStruxure Web Services
- Script Web Service - Generic Consume via Script (Web Service addition Script Web Service)
- Simple XML Web Service - Rest Generic Consume via Binding Tool
- SOAP Web Service - SOAP Generic Consume via Binding Tool (Web Service addition SOAP Web Service)
This article explains adding Weather for a particular location data using Simple XML:
- Select New > Interface > Web Service > Simple XML
- Specify the URL for this data (to find the weather for your area, Google XML data
- Make changes to polling, alarm, retry interval
- Choose Create
- Now you can Create a value from that Simple XML Web Service by highlighting and select New > Value > and type of value. Select Analog for temperature, String Value for wind direction and so forth.
- One can add as many of the values as desired. The Simple XML List View would look like the below screen capture.
- Lastly for Simple XML Web Service a graphic is created and the values which come from the XML Web Service are place on the page.
Also check out the SmartStruxure - Web Services - Simple XML Interface Quick-Help video on the Exchange.