Hello Support team ,
we have updated .net unified automation sdk version from 3.2.3 to 4.0.1. Now call for AddNode service is not getting hit on server while calling from client with below code :
Client method: public IAsyncResult BeginAddNodes( IList<AddNodesItem> nodesToAdd, RequestSettings settings, AsyncCallback callback, object serData)
Server method : public override ResponseHeader AddNodes(SecureChannelContext channelContext, RequestHeader requestHeader, AddNodesItemCollection nodesToAdd, out AddNodesResultCollection results, out DiagnosticInfoCollection diagnosticInfos)
Note : after updating UA sdk 4.0.1 new parameter SecureChannelContext has been added in AddNodes api which is causing the problem .
with 3.2.3 above code was working fine .
please suggest how to resolve this issue ?.
How to call AddNodeService on client (.net UA SDK 4.0.1)
Moderator: uasdknet
-
- Jr. Member
- Posts: 2
- Joined: 03 Jul 2019, 07:40
- Support Team
- Hero Member
- Posts: 3158
- Joined: 18 Mar 2011, 15:09
Re: How to call AddNodeService on client (.net UA SDK 4.0.1)
Hi,
This low level API was not intended to be overridden by applications. What is the issue with the new parameter?
When overriding the BaseNodeManager AddNodes is already implemented. You need to configure the AddNodes Permission in the DefaultRolePermissions of the server for a specific node and assign this role to a user. The application can be informed about added nodes by implementing AfterNodesAdded.
https://documentation.unified-automation.com/uasdknet/4.0.1/html/classUnifiedAutomation_1_1UaServer_1_1BaseNodeManager.html#a4c5d35bb037bc24c7b8556f7d6cfa53b
This low level API was not intended to be overridden by applications. What is the issue with the new parameter?
When overriding the BaseNodeManager AddNodes is already implemented. You need to configure the AddNodes Permission in the DefaultRolePermissions of the server for a specific node and assign this role to a user. The application can be informed about added nodes by implementing AfterNodesAdded.
https://documentation.unified-automation.com/uasdknet/4.0.1/html/classUnifiedAutomation_1_1UaServer_1_1BaseNodeManager.html#a4c5d35bb037bc24c7b8556f7d6cfa53b
Best regards
Unified Automation Support Team
Unified Automation Support Team