Hello,
I am trying to list namespaces of my OPC UA server, but without success. I tried also:
If I try this:
NodeId nodeId = new NodeId("Server", 0);
INode node = clientInterface.session.NodeCache.FetchNode(nodeId);
I get an error:
Opc.Ua.ServiceResultException: 'BadNodeIdUnknown'
call
NodeId nodeId = new NodeId(2253, 0);
works fine.
What is the most straightforward way to use browsename to find/fetch node?
Thanks a lot.
That's correct.
The background of my question: I am trying to build aggregating server. A default ua client do not have a knowledge about the file where node id are defined.
I could generate address space where I set node IDs as strings. But that is just a workaround for specific server.
For requesting node by string ID is a built in function, or it is required by design to use translateBrowsePathsToNodeIds service to access node by its browsename and nemespace index?
Thank you
Rudo
05/30/2017
How a client gets the NodeId is up to the client and depends on the context.
Options include:
1) Browse;
2) TranslateBrowsePath;
3) Read (e.g. DataType Attribute);
You can also save a previously browsed NodeId and load it from configuration file.
All of these work for an aggregating server.
1 Guest(s)