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

SubscriptionItems and EwsClient

SmartConnector Forum

Schneider Electric support forum about SmartConnector applications for integration of other building management systems (BMS) into EcoStruxure Building Operation.

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 Building
  • SmartConnector
  • SmartConnector Forum
  • SubscriptionItems and EwsClient
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
JeffBowman
Sisko JeffBowman Sisko
164
ardak
ardak Schneider Alumni (Retired)
34
sesa180908_brid
Commander sesa180908_brid Commander
34
mike_meirovitz
Commander mike_meirovitz
21
View All

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Back to SmartConnector Forum
sesa197614_brid
sesa197614_brid Schneider Alumni (Retired)
Schneider Alumni (Retired)

Posted: ‎2017-09-24 07:09 PM

0 Likes
7
1288
  • 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.

‎2017-09-24 07:09 PM

SubscriptionItems and EwsClient

HI Mark:

Moreover, could your please also clarify the process in details about SubscriptionItems in EWSClient of consuming data from SBO, both for value and updated alarms? And it should also include how to renewal the subscription once expired or stopped for some reason.

I am expecting to it to make sure the way I am using is exactly correct.

Cheers

Austen

Reply
  • All forum topics
  • Previous Topic
  • Next Topic
Replies 7
sesa180908_brid
Commander sesa180908_brid Commander
Commander

Posted: ‎2017-09-25 06:15 AM

1 Like
2
1213
  • 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.

‎2017-09-25 06:15 AM

EwsSubscriptionItem

The concept of an EwsSubscriptionItem is specific to native SmartConnector EWS Servers and unrelated to the EwsClient which is server agnostic and only concerns itself with the EWS Specification (found here SmartConnector Server). 

An EwsSubscriptionItem represents an item (ValueItem, AlarmItem, HistoryItem, or SystemEvent) which is being subscribed to. 

SmartConnector EWS Server subscriptions support ValueItem events (Value and/or State changes), HistoryItem changes, AlarmItem changes, and any data item hierarchy changes (think of this a an item being re-parented).  Since SmartConnector EWS Servers do not support SystemEvents, those subscriptions are also not supported.

SBO only support ValueItem events.

Subscription Renewal
While different EWS Servers may handle this differently, it should be assumed that an expired subscription can NOT be renewed.  Rather, you would need to create a new subscription.  In general, a non-expired subscription can be renewed at any time for the duration requested.  (NOTE, SBO always sets subscriptions and renewals at 30 minutes.)

Reply
JeffBowman
Sisko JeffBowman Sisko
Sisko

Posted: ‎2017-09-25 07:11 AM

1 Like
1
1213
  • 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.

‎2017-09-25 07:11 AM

Hi Austin,

In Mongoose.Process.Ews there is a class call SubscriptionReader. This class will take care of the subscription creation and reading and it will also automatically renew when needed. You just need to pass in either a list of ews ids to create a subscription or a subscription ID and then call ReadData on the reader to get the values.

Mark, does the documentation have more information on this reader?

Regards,

-Jeff

Reply
sesa180908_brid
Commander sesa180908_brid Commander
Commander

Posted: ‎2017-09-25 07:16 AM

1 Like
0
1213
  • 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.

‎2017-09-25 07:16 AM

SubscriptionReader is listed in section 4.1 of the SmartConnectoer Developers Guide. 

Reply
sesa197614_brid
sesa197614_brid Schneider Alumni (Retired)
Schneider Alumni (Retired)

Posted: ‎2017-09-27 11:23 PM

0 Likes
3
1213
  • 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.

‎2017-09-27 11:23 PM

Thanks Mark,Jeff, now I know I was using SubscriptionReader as the way it be.

And in order to long term maintain a subscription progress to SBO, normally I check the status of a subscription, if current subscription failed and I just create new one as:

However, from the log(as I output the subscription ID into log file), I found frequently, new subscription will be created, which means old subscription failed, could you please help list all possible reasons which may cause a subscription fail so that I can better trace to refine the progress?

Cheers

Austen

Reply
sesa180908_brid
Commander sesa180908_brid Commander
Commander

Posted: ‎2017-09-29 06:39 AM

0 Likes
0
1213
  • 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.

‎2017-09-29 06:39 AM

Austen,

You asked "could you please help list all possible reasons which may cause a subscription fail so that I can better trace to refine the progress"?

That's not really a SmartConnector question.  The underlying server (what is actually serving up the data to SmartConnector) is the system that determines how, when, or if a Subscription is no longer valid.  For example, if you are using the SoapEwsRestProvider and the "Server Address" you configure is an SBO ES or AS EWS endpoint, then that is where you would need to direct that question too. 

Unfortunately, I'm not familiar enough with all of the reasons why SBO might invalidate an EWS Subscription.  Perhaps others can add to this thread if they have information.

Reply
JeffBowman
Sisko JeffBowman Sisko
Sisko

Posted: ‎2017-10-02 06:45 AM

1 Like
1
1213
  • 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.

‎2017-10-02 06:45 AM

Hi Austen,

In the SmartConnector portal, if you set Logging to Trace (in Setup >> Settings). Also also turn on the EwsClient logging (set EwsClient to True in Setup > Logging Filters). Then you should be able to see the EWS requests that SmartConnector is sending from the SubscriptionReader and the responses from the SBO. The responses should give you a much better idea why these subscriptions are failing.

Feel free to attach a log if you need to some help deciphering it.

Regards,

-Jeff

Reply
sesa197614_brid
sesa197614_brid Schneider Alumni (Retired)
Schneider Alumni (Retired)

Posted: ‎2017-10-05 11:17 PM

0 Likes
0
1213
  • 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.

‎2017-10-05 11:17 PM

Thanks Jeff, I have followed your advice to turn on the EWSClient logging, my extension has been running for around 3 days and only one subscription is there so far.I will keep it running to see what happen if anytime new subscription was created automatically.

Cheers

Austen Yin

Reply
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