SmartConnector Forum
Schneider Electric support forum about SmartConnector applications for integration of other building management systems (BMS) into EcoStruxure Building Operation.
Link copied. Please paste this link to share this article on your social media post.
Dear Experts,
I have made an API to receive Webhook from 3rd Party System. In the project, I am using a setup processor to start EWS Server.
After Compiling, I put the DLL in the Smart Connector folder where we put other extension DLLs. After that, I open the smart connector portal but Neither the processor nor the EWS Server is visible there so that I am unable to configure it there.
What can be the possible problem?
My other extensions are working fine.
Please reply.
Best Regards
Syed Danish Maqbool
Link copied. Please paste this link to share this article on your social media post.
Hi,
This means Smartconnector was unable to load the DLL. There are different reasons this may be the case. Could you show us your log from when you added the DLL and tried to add the extension?
The logs are in %ProgramData%\SmartConnector\Logs
BR
Armend
Link copied. Please paste this link to share this article on your social media post.
Dear Ardak,
I stopped the service and delete the DLL of my solution from Smart Connector Folder.
Again I started the service and and copy the DLL and run the portal. But processor and EWS server is not visible.
Also, there is no new log generated in this case.
You can see below:
-----------------------------------------------------------------------------------------------------------------
2022-01-25 15:12:12.5466,Status,Service,<no principal>,SmartConnector is stopping,
2022-01-25 15:12:12.5935,Status,Service,<no principal>,Stopping PortalAddress,
2022-01-25 15:12:12.7966,Status,Service,<no principal>,Stopping REST Providers,
2022-01-25 15:12:13.1872,Status,Service,<no principal>,Stopping REST Provider http://127.0.0.1:8083,
2022-01-25 15:12:13.3903,Status,Service,<no principal>,Detaching context listeners,
2022-01-25 15:12:13.4216,Status,Service,<no principal>,Stopping EWS Servers,
2022-01-25 15:12:13.4528,Status,Service,<no principal>,Stopping EWS Server http://localhost:57621/DataExchange,
2022-01-25 15:12:14.0310,Status,Service,<no principal>,Stopping WorkerManager,
2022-01-25 15:12:16.2027,Status,WorkerManager,<no principal>,Worker manager has stopped.,
2022-01-25 15:12:56.5975,Status,Service,<no principal>,SmartConnector is starting,
2022-01-25 15:12:56.6287,Status,Service,<no principal>,Intializing User DB context,
2022-01-25 15:12:57.7068,Info,Service,<no principal>,Cleaning up orphaned ParameterSet instances,
2022-01-25 15:12:57.8943,Status,Service,<no principal>,Ensuring Service Broker is enabled,
2022-01-25 15:12:57.9568,Status,Service,<no principal>,Spinning up WorkerManager,
2022-01-25 15:12:57.9568,Status,WorkerManager,<no principal>,Mongoose WorkerManager running with 5 Processor threads.,
2022-01-25 15:12:57.9881,Status,WorkerManager,<no principal>,Worker manager has started.,
2022-01-25 15:12:59.1443,Status,Service,<no principal>,Instantiating EWS Servers,
2022-01-25 15:12:59.1599,Status,Service,<no principal>,Starting EWS Server http://localhost:57621/DataExchange,
2022-01-25 15:12:59.7068,Status,Service,<no principal>,Attaching context listeners,
2022-01-25 15:13:00.4411,Status,Service,<no principal>,Starting REST Providers,
2022-01-25 15:13:00.7536,Status,Service,<no principal>,Starting REST Provider http://127.0.0.1:8083,
2022-01-25 15:13:01.3786,Status,Service,<no principal>,Starting PortalAddress,
-----------------------------------------------------------------------------------------------------------------
Please see.
Best Regards
Syed Danish Maqbool
Link copied. Please paste this link to share this article on your social media post.
A processor and EWS server don’t pop-up when you add an extension..
did you create the processor from the dll candidate and run the setup processor to create the EWS server?
Link copied. Please paste this link to share this article on your social media post.
Dear Erwin,
My problem is that the candidate are not being shown on Smart Connector Portal.
Neither for Setup Processor nor for EWS Server.
How to resolve that?
Best Regards
Syed Danish Maqbool
Link copied. Please paste this link to share this article on your social media post.
Then you are missing dependancy .dll's, for instance if you use smartconnector utillities you need to copy that dll also to the SmartConnector folder. It's not trivial to say what dll needs to be included (copied together with the extention), look at your depandancies to determine what files you need to include. Don't overwite exisiting .dll's in rthe SC folder, this might cause the service to fail to start.
Link copied. Please paste this link to share this article on your social media post.
Does it has something to do with the fact that I started the project as API? Not class library.
If yes then how can I add API in my project?
Link copied. Please paste this link to share this article on your social media post.
What API do you need? Do you want to expose an API on EBO so others can connect to it? Then this is possible with the build in endpoint without the need of any coding. If you need to fetch data from an API on 3th party systems you need to create a extention as a class lib and build the API connection into your code.
Link copied. Please paste this link to share this article on your social media post.
Yes, I need to receive the Webhook fired by 3rd party system and then expose that data to EWS client via smart connector.
Link copied. Please paste this link to share this article on your social media post.
Well the term webhook is pretty wide, could be a websocket or callback or simple post request, with the default REST API you can receive GET/POST/PUT requests to the endpoint and read/write over EWS from/to EBO but this is not Webhook or websocket based, if you need this you need to develop a SmartConnector extentions (class lib) and write this into your C# code.
Link copied. Please paste this link to share this article on your social media post.
Thanks Erwin,
So that means I need to create Class Library. Because to start as API, it is not working for me.
The third party system has events configured and whenever any of the event triggers, it send that data to us via POST request.
As conclusion, I should have Class Library (class lib) for my extension to work. If I started my project as API (C#), Smart Connector will not read the DLL.
Best Regards
Syed Danish Maqbool
Link copied. Please paste this link to share this article on your social media post.
Well kind of hard to conclude this is all you need to do..
Did you developed your extention with taking this document into account?
Did you tested your code in N-Unit before you deployed your code to the SC runtime enivornment?
I have the feeling you skipped all these steps..
Link copied. Please paste this link to share this article on your social media post.
We followed this guide except that we didn't test the code before loading to SC Runtime. And also did not started the project as class library. Remaining we followed.
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.