Do I need to import multiple XML files into a server?

Questions regarding the use of UaModeler

Moderator: uamodeler

Post Reply
kursatb
Jr. Member
Jr. Member
Posts: 4
Joined: 20 Sep 2023, 09:52

Do I need to import multiple XML files into a server?

Post by kursatb »

I have a UAModeler project that contains 2 models. It looks like this:

Models:
- Opc.Ua.NodeSet2.ua
- Model1 (This has some types)
- Model2 (This one depends on model1)

Objects:
- Instance of Model2
- Server

So when I export the model2.xml and build an adress space with C++ SDK based on that everything looks fine when I connect with a client.
What confuses me is the Model1. I can export that as an xml separately and Model2.xml mentions Model1.xsd.

Do I need to load the Model1.xml file somehow to the server or does the model2.xml file contain everything I need?

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

Re: Do I need to import multiple XML files into a server?

Post by Support Team »

Hello,

When exporting models in UaModeler, the NodeSet2.xml file will only have dependecies to models with a lower namespace index. There is a dependecy to a model if there is a OPC UA reference to a node in the model, a DataType or a ReferenceType from the model is used.

In the described case Model2 depends on Model1. So when importing Model2 to UaModeler or a server, Model1 has to be imported first. Otherwise references might be missing or DataType Ids or ReferenceType Ids might be invalid.
Best regards
Unified Automation Support Team

Post Reply