12:42, EET
December 20, 2021
Hello,
the method:
com.prosysopc.ua.server.UaServer.init();
loads by default the information model Opc.Ua.NodeSet2.xml saved inside the jar :
12/21/2021 11: 32: 37.876 INFO [main] com.prosysopc.ua.server.NodeManagerTable – Loading model from jar: file: prosys-opc -ua-java-sdk-client-server-3.1.2-488.jar! /com/prosysopc/ua/types/opcua/server/Opc.Ua.NodeSet2.xml
is it possible to load another version of the information model Opc.Ua.NodeSet2.xml?
Thanks,
Francesco
13:30, EET
April 3, 2012
Hi,
Note the other post, but basically you are running a very old version of the SDK. Latest is 4.6.2. Update first to that. It uses the next-to-newest model 1.04.9.
SDK with the generated code from the model is tied to the version of the base information model it ships with (and to the “services nodeset” generation outputs as well that had the same version). The model is not designed to be user-replaced (it is a lot more complicated than “just the XML”), thus you cannot change it. If you have a problem with it, let us know.
The next SDK release 4.7.0 will ship with base model 1.04.10. That release will happen on January next year. That model includes errata to the one we ship now (1.04.9 with SDK 4.6.2) but OPC Foundation also added new features (2 new Structure types), and basically we have to add support to them before we update since some pubsub related structures were moved to the new types and our codegenerator would create not proper code to those. Also SDK internals that load StructureSpecifications from the models would have loaded incorrectly without knowledge of the new things resulting in a mess.
So it short, it is per se not possible to load newer versions of the base model, since each new version typically adds something the SDK should change or add. That being said, we would very much like eventually to get to the point where it could be changed if that would not happen (i.e. just errata that somehow magically would not affect generation outputs). But in reality that would complicate things, as we do use internally the generated classes of the base model. In 4.0.0 we removed the DI,ADI,PLCOpen to be user-generated (https://downloads.prosysopc.com/opcua/Prosys_OPC_UA_SDK_for_Java_4_Release_Notes.html#version-4-0-0). But the base model is a lot more complicated to remove. Not sure if that is even realistically doable, but we will investigate that (but what is the priority of that work depend on what people ask of us).
So as in “short”, it is just not the model XML file itself, but basically everything that is tied to it.
Most Users Ever Online: 1919
Currently Online:
11 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 88
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 738
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1524
Posts: 6451
Newest Members:
rickyjuarez140, jonathonmcintyre, fannielima, kristiewinkle8, rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCibModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1026, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0
Administrators: admin: 1