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

Web Service addition Script Web Service

Building Automation Knowledge Base

Schneider Electric Building Automation Knowledge Base is a self-service resource to answer all your questions about EcoStruxure Building suite, Andover Continuum, Satchwell, TAC…

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
  • Knowledge Center
  • Building Automation Knowledge Base
  • Web Service addition Script Web Service
Options
  • Bookmark
  • Subscribe
  • Email to a Friend
  • Printer Friendly Page
  • Report Inappropriate Content
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

Related Forums

  • Intelligent Devices Forum

Previous Next
Contributors
  • DavidFisher
    DavidFisher
  • CraigEl
    CraigEl
  • sesa139513
    sesa139513
  • Product_Support
    Product_Support

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Back to Building Automation Knowledge Base
Options
  • Bookmark
  • Subscribe
  • Email to a Friend
  • Printer Friendly Page
  • Report Inappropriate Content
0 Likes
5296 Views

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

Trying to translate this page to your language?
Select your language from the translate dropdown in the upper right. arrow
Translate to: English
  • (Français) French
  • (Deutsche) German
  • (Italiano) Italian
  • (Português) Portuguese
  • (Русский) Russian
  • (Español) Spanish

Web Service addition Script Web Service

Picard Product_Support
‎2018-09-10 01:41 PM

Last Updated: Administrator CraigEl Administrator ‎2022-08-07 11:39 PM

Issue

Web Service addition Script Web Service

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.

  1. How to add Script Web Service files and how to add to a project or site
  2. How to create values from Script Web Service Files
  3. How to add values to graphic that uses the values from Script Web 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:
1. are hardware, programming language, and operating system independent
2. Applications written in different programming languages and running on different platforms can seamlessly exchange data over intranet or the internet using Web Services
3. Web Service interfaces are supported in both the AS and ES
4. Like BACnet, Lon, and Modbus, you can create a Web Service interface.

  •      EWS Interface - EcoStruxure Web Services
  •      Script Web Service - Generic Consume via Script
  •      Simple XML Web Service - Rest Generic Consume via Binding Tool (Web Service addition Simple XML Web Service)
  •      SOAP Web Service - SOAP Generic Consume via Binding Tool (Web Service addition SOAP Web Service)

This article explains adding Sunrise and Sunset for a particular location data using Script Web Service:
-Select New...Interface...Web Service...Script Web Service
This first example is for a Calculation program for Results=A+B

-Enter the WSDL

  • Service and Endpoint are auto-filled
  • Not necessarily all the time
  • IP Cameras

-Script Web Services Interface:

-Script Programs can bind to the web service with the "Webservice" declaration.

-When the name bound service is typed and a "." is put after it, intellisense drop down will show the available methods

  • WSDL file is brought into the database
  • Drop down methods become available even if the URL of the WSDL is not

-The web service capabilities can be used within the code for manipulation, data gathering, or whatever else.

-Script Web Services Post and Gets

-Script programs can send requests directly to a web service with the SendWebRequest keyword.

-The syntax requires 5 specific arguments

  • BaseURL - URL that will be processing the message
  • Method - Method of processing the POST and GET (dictated by URL)
  • Headers - Defines certain parameters that are meaningful to the URL (IsMobileApp:True;IsAndroidClient:True)
  • Content-Type - Defined by the URL
  • Message - What is actually being sent to the URL

-Script Web Services - Considerations

-Bindings to a web service require a recompile

-Display of captured information will get localized  

Next, Create a Script Program for Calculations

Here is a simple script program which defines the calc and values

The below shot is the values A=12, B=3, and the Results of the calculation.

Below are the binding for the Script Calc program to the Values

The below shot is the binding of the Calc program to the Script Web Service

The results are a calculation in which we supply value A and B and the Script Web Service performs the calculation with results of 15.

 

We can change the value of A to from 12 to a value of 13 which Results in 16 as shown in the shot below.

Labels (1)
Labels:
  • EcoStruxure Building Operation
Tags (1)
  • Find more articles tagged with:
  • 11560
Was this article helpful? Yes No
100% helpful (1/1)

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

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