XmlUaNodeFactoryManager

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

Moderator: uasdkcpp

Post Reply
hammarbytp
Sr. Member
Sr. Member
Posts: 14
Joined: 02 Sep 2013, 15:27

XmlUaNodeFactoryManager

Post by hammarbytp »

Are there any examples on the use of Type constructors using a XmlUaNodeFactoryManager instance?

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

Re: XmlUaNodeFactoryManager

Post by Support Team »

Hi,

Can you provide more details for your question?
Do you want to import OPC UA type nodes like ObjectTpyes or do you want to create instances of types based on generated code?

Best Regards,
Unified Automation Support Team

hammarbytp
Sr. Member
Sr. Member
Posts: 14
Joined: 02 Sep 2013, 15:27

Re: XmlUaNodeFactoryManager

Post by hammarbytp »

We want to import OPC UA types based on external specifications, but without having to recompile our server

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

Re: XmlUaNodeFactoryManager

Post by Support Team »

In the documentation you can find the chapter "Tutorials for Server development" -> "C++ SDK Demo Server" -> "Loading Address Space from UANodeSet XML File". That's a good entry point to learn about XML import.

You can generate object types and instances with the UaModeler and export them to xml format. This xml file can be loaded into the server.
If you import OPC UA object types from an external specification using the xml file format that will work. But you still need to connect these in-memory-nodes to something in the real world. An good place to see how to do that is looking at
MyNodeManagerNodeSetXml and MyNodeManagerNodeSetXmlCreator in the C++ demoserver.

Best Regards

Unified Automation Support Team

Post Reply