UaExpandedNodeId::toXmlString() not OPC10000-6 compliant

Questions regarding the use of the C++ SDK for Server or Client development or integration into customer products ...

Moderator: uasdkcpp

Post Reply
wnuyts
Jr. Member
Jr. Member
Posts: 1
Joined: 30 Mar 2016, 16:54

UaExpandedNodeId::toXmlString() not OPC10000-6 compliant

Post by wnuyts »

Hi,

In version 1.7.2, the UaExpandedNodeId::toXmlString() function does not produce a string that is compliant with the format as specified in OPC10000-6, v1.04, section 5.3.1.11 (https://reference.opcfoundation.org/v104/Core/docs/Part6/5.3.1/#5.3.1.11)

Instead, the returned string seems to be the XML representation of only the NodeId part of the ExpandedNodeId, as specified here :https://reference.opcfoundation.org/v104/Core/docs/Part6/5.3.1/#5.3.1.10

Example code snippet to reproduce:

Code: Select all

UaExpandedNodeId expandedId(UaNodeId(123, 1), "http://myorganisation.com/UA/", 1);
UaString expandedIdStr = expandedId.toXmlString();
Expected contents of 'expandedId':

Code: Select all

svr=1;nsu=http://myorganisation.com/UA/;i=123
actual contents:

Code: Select all

ns=1;i=123
Thanks

User avatar
Support Team
Hero Member
Hero Member
Posts: 3064
Joined: 18 Mar 2011, 15:09

Re: UaExpandedNodeId::toXmlString() not OPC10000-6 compliant

Post by Support Team »

This issue will be fixed in the upcoming 1.7.5 release.
Best regards
Unified Automation Support Team

Post Reply