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

We Value Your Feedback!
Could you please spare a few minutes to share your thoughts on Cloud Connected vs On-Premise Services. Your feedback can help us shape the future of services.
Learn more about the survey or Click here to Launch the survey
Schneider Electric Services Innovation Team!

Using SmartConnector RESTful EWS Gateway to get multiple data from PME

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
  • Using SmartConnector RESTful EWS Gateway to get multiple data from PME
Options
  • 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
Solved Go to Solution
Back to SmartConnector Forum
Solved
JessieSu
Lieutenant JessieSu Lieutenant
Lieutenant

Posted: ‎2018-03-08 06:44 AM

1 Like
17
2248
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

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

‎2018-03-08 06:44 AM

Using SmartConnector RESTful EWS Gateway to get multiple data from PME

Hello,

Since SmartConnector can get data from SBO via EWS, so I think it also can be used to get data from PME via EWS. I configure the RESTful EWS Gateway in SmartConnector and test GET/Values/{id}, the response value is correct. But When trying to get multiple data and using POST /Subscriptions/Create command, I got a error:

Response Code

500

Response Body

{

  "Message": "由于 ContractFilter 在 EndpointDispatcher 不匹配,因此 Action 为“http://www.schneider-electric.com/common/dataexchange/2011/05/SubscribeIn”的消息无法在接收方处理。这可能是由于协定不匹配(发送... Action 不匹配)或发送方和接收方绑定/安全不匹配。请检查发送方和接收方是否具有相同的协定和绑定(包括安全要求,如 Message、Transport、None)。"

}

Below is capture, sorry there are some Chinese characters, it means that something mismatch.

Does anybody know the reason for it? or how to solve it? Thank you!

capture.png

Best Regards

Jessie

Reply
  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
JeffBowman
Sisko JeffBowman Sisko
Sisko

Posted: ‎2018-03-14 07:09 AM

0 Likes
3
2116
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

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

‎2018-03-14 07:09 AM

Hi Chris,

This is exactly the line I was looking for .

It looks as though you may have the wrong version of ICS.CustomSoapRestProvider.dll.

Adam Summers​ can you help see if Chris has the correct version? The one that was built against 2.3.117 nuget packages.


Regards,

-Jeff

See Answer In Context

Reply
Replies 17
JeffBowman
Sisko JeffBowman Sisko
Sisko

Posted: ‎2018-03-08 07:54 AM

0 Likes
4
2116
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

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

‎2018-03-08 07:54 AM

Hi Jessie,

This is because PME does not support EWS Subscriptions. (Subscribe, GetNotifications, Renew, Unsubscribe EWS methods). And because the /Subscriptions and /Notifications REST endpoints use these methods behind the scenes, you are getting this error.

That said in order to make this work today, you will need to create a custom REST endpoint that overrides the POST /Subscriptions/Create and /Notifications/Create method to use different EWS methods behind the scenes (There is a sample how to do this in the SmartConnectorSamples project in GitHub: GitHub - BuildingsLabs/SmartConnectorSamples: Sample projects for SmartConnector​). The good news is, you are not the first to run into this issue .

Adam Summers​ would you be able to help Jessie out with this?

We have adding a fall-back mechanism into the SoapEwsRestProvider for these endpoints on the roadmap for SmartConnector, but this will not be complete until a future version of Smart Connector.


Regards,

-Jeff

Reply
Adam_Summers
Lt. Commander Adam_Summers Lt. Commander
Lt. Commander

Posted: ‎2018-03-08 09:12 AM

0 Likes
0
2116
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

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

‎2018-03-08 09:12 AM

Hi Jessie,

As Jeff mentioned I have built a Custom Endpoint Provider which extends the built in SOAP EWS endpoint. It overrides the notification and subscription methods such that these are handled internally by SmartConnector. It's currently in use on one project and so far the feedback has been positive. I'd be happy to share the extension with you if you wanted to give it a try and see if it's fit for your purpose. - No cost for the extension from me on this occasion but you'll have to take it as is, without warranty etc - be good to get some more feedback to know if it solves your problem. It should at least be good enough to fill the gap whilst you wait for the development to be completed in the core. Let me know if it's of interest and I'll get it posted for you to download.

Adam.

Reply
Adam_Summers
Lt. Commander Adam_Summers Lt. Commander
Lt. Commander

Posted: ‎2018-03-08 01:15 PM

1 Like
10
2116
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

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

‎2018-03-08 01:15 PM

The extension has been listed over on the License Depot at SmartConnector Server as "Custom Soap EWS Rest Provider" you will need to complete a license request to use the extension and enter the machine thumbprint to get your license file. You can download the extension dll which you just need to copy into the SmartConnector install directory here Custom Soap EWS Rest Provider - Box - this has been built for use with SmartConnector 2.3.117

Reply
JessieSu
Lieutenant JessieSu Lieutenant
Lieutenant

Posted: ‎2018-03-08 06:18 PM

0 Likes
0
2116
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

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

‎2018-03-08 06:18 PM

Thank you Adam,

Yes, I am interested in it, and thank you very much for sharing it to me. I would like to try it and will let you know the feedback.

Best Regards

Jessie

Reply
JessieSu
Lieutenant JessieSu Lieutenant
Lieutenant

Posted: ‎2018-03-08 06:29 PM

0 Likes
0
2116
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

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

‎2018-03-08 06:29 PM

Thank you Jeff!

Reply
ChrisLaurentius
ChrisLaurentius Schneider Alumni (Retired)
Schneider Alumni (Retired)

Posted: ‎2018-03-12 02:00 AM

0 Likes
8
2116
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

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

‎2018-03-12 02:00 AM

Trying to do so on a test machine, assembly for end point is still missing the custom soap rest provider option.

Any idea?

I've done:

  1. Added Custom Soap EWS Rest Provider license
  2. Copied over the ISC.CustomSoapRestProvider.dll to smart connector fodler
  3. Restarted Smart connector service/windows.
Reply
JeffBowman
Sisko JeffBowman Sisko
Sisko

Posted: ‎2018-03-12 06:53 AM

0 Likes
7
2116
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

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

‎2018-03-12 06:53 AM

Hi Christopherus,

What version of Smart Connector do you have installed? Make sure you are using 2.3.117.


Regards,

-Jeff

Reply
ChrisLaurentius
ChrisLaurentius Schneider Alumni (Retired)
Schneider Alumni (Retired)

Posted: ‎2018-03-12 08:45 PM

0 Likes
6
2116
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

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

‎2018-03-12 08:45 PM

Hi Jeff,

Yes, version 2.3.117.

So I did a reinstall of SC, and still same issue.

I'll create another VM, to see if  got the same behaviour.

Thoughts?

Details

  • Windows 2012 Standard R2
  • .NetFramework 4.5.2
  • MS SQL 2017 Express Edition
  • SmartConnector-2.3.117
  • ISC.CustomSoapRestProvider.dll file added to C:\Program Files (x86)\Schneider Electric\SmartConnector folder

License:

On Test VM: adding new end point shows only the default Ews.RESTExtensions, missing the CustomSoapRestProvider.

In comparison, on SC deployed on actual site, it showed the customSoapRestProvider

This is the assembly used for PME (by Adam), and -currently testing- for DCE.

Regards,

Chris

Reply
JeffBowman
Sisko JeffBowman Sisko
Sisko

Posted: ‎2018-03-13 07:30 AM

0 Likes
5
2116
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

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

‎2018-03-13 07:30 AM

Hi Chris,

If you are not seeing it show up when are trying to add it, try the following.

1. Turn logging to Trace

2. Make sure the 'Portal' filter is set to True.

3. Restart Smart Connector

4. Try to add the endpoint configuration again.

5. Attach the Smart Connector log to this thread .

Regards,

-Jeff

Reply
ChrisLaurentius
ChrisLaurentius Schneider Alumni (Retired)
Schneider Alumni (Retired)

Posted: ‎2018-03-13 07:41 PM

0 Likes
4
2116
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

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

‎2018-03-13 07:41 PM

Hi Jeff,

Attached is log per above.

https://schneider-electric.box.com/s/w562wzrmci1nwfiu5bsb3cah2dd3l2yk

I think this is the log entry you are looking for:

2018-03-14 10:31:32.2212,Error,Portal,admin,Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

  at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)

  at System.Reflection.RuntimeModule.GetTypes()

  at System.Reflection.Assembly.GetTypes()

  at Mongoose.Service.Portal.Root.AddBindingInformationBaseController`2.GetClassList(AssemblyListItemModel assemblyInfo)

  at Mongoose.Service.Portal.Root.AddBindingInformationBaseController`2.GetAssemblyList(String rootFolder)

,["Error attempting to load assembly C:\\Program Files (x86)\\Schneider Electric\\SmartConnector\\ISC.CustomSoapRestProvider.dll. Loader Exception(s): \r\nCould not load file or assembly 'Ews.RestExtensions, Version=2.3.113.0, Culture=neutral, PublicKeyToken=223885051a9a1eff' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)\r\nCould not load file or assembly 'Ews.RestExtensions, Version=2.3.113.0, Culture=neutral, PublicKeyToken=223885051a9a1eff' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)\r\nCould not load file or assembly 'Ews.RestExtensions, Version=2.3.113.0, Culture=neutral, PublicKeyToken=223885051a9a1eff' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)\r\nCould not load file or assembly 'Ews.RestExtensions, Version=2.3.113.0, Culture=neutral, PublicKeyToken=223885051a9a1eff' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)\r\nCould not load file or assembly 'Ews.RestExtensions, Version=2.3.113.0, Culture=neutral, PublicKeyToken=223885051a9a1eff' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)\r\n"],

Regards,

Chris

Reply
JeffBowman
Sisko JeffBowman Sisko
Sisko

Posted: ‎2018-03-14 07:09 AM

0 Likes
3
2117
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

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

‎2018-03-14 07:09 AM

Hi Chris,

This is exactly the line I was looking for .

It looks as though you may have the wrong version of ICS.CustomSoapRestProvider.dll.

Adam Summers​ can you help see if Chris has the correct version? The one that was built against 2.3.117 nuget packages.


Regards,

-Jeff

Reply
ChrisLaurentius
ChrisLaurentius Schneider Alumni (Retired)
Schneider Alumni (Retired)

Posted: ‎2018-03-14 05:02 PM

1 Like
2
2116
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

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

‎2018-03-14 05:02 PM

Jeff, Adam,

Thanks,  I retraced the file ICS.CustomSoapRestProvider.dll , and was copied from actual production site, not the same file as the one in box.It seems it is older version.

Replaced with  Adam's file in box, and the customsoaprestprovider assembly showed up.

All good for testing now, thanks!

Reply
Adam_Summers
Lt. Commander Adam_Summers Lt. Commander
Lt. Commander

Posted: ‎2018-03-15 02:18 AM

0 Likes
1
2116
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

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

‎2018-03-15 02:18 AM

Hi Chris,

Just wanted to check, did you get everything resolved? The latest build of the extension which I shared on Box should be compatible with 2.3.117.

Reply
ChrisLaurentius
ChrisLaurentius Schneider Alumni (Retired)
Schneider Alumni (Retired)

Posted: ‎2018-03-15 04:02 AM

1 Like
0
2116
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

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

‎2018-03-15 04:02 AM

Hi Adam,

Yes, it is working now, thanks.

I am now running DCE with SC on my own VM for testing.

Reply
SteveGregory
Commander SteveGregory Commander
Commander

Posted: ‎2018-04-13 11:49 PM

0 Likes
2
2116
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

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

‎2018-04-13 11:49 PM

It would be great if the SoapRestProvider would work with PME and PSE. Please update us when this becomes available.

Reply
Adam_Summers
Lt. Commander Adam_Summers Lt. Commander
Lt. Commander

Posted: ‎2018-04-14 12:19 AM

0 Likes
1
2116
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

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

‎2018-04-14 12:19 AM

The REST API providers do work with PME. PME doesn’t support subscriptions so the model didn’t work well for requesting large batches of data. That’s where the extension I published comes in as it allows subscription like behaviour managed by SmartConnector instead of the downstream system. I know Jeff has this on the backlog to support natively but you should be able to use PME with SmartConnector REST API today. I’m also currently looking at work we’ve done with Citect SCADA using ctAPI which could have the REST API on top of the EWS server it presents. That might help put SmartConnector straight on top of a PSE client but we have some validation to do with the team in Canada first.

Reply
SteveGregory
Commander SteveGregory Commander
Commander

Posted: ‎2018-04-14 12:39 AM

0 Likes
0
2116
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

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

‎2018-04-14 12:39 AM

Ah I see. Good to know as we have a couple of projects where we would like to do just that. The REST Api is getting a lot of attention here. Thanks

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