14:05, EET
February 21, 2014
Hi all,
I’m trying to create parts of my server’s addressSpace from one or more NodeSet.xml descriptions (generated with UAModeler). After removing the and tags, parsing doesn’t throw exceptions. The namespaces are added to the server including their respective nodeManagers. Just the actual “objects” do not show up when browsing. What am I missing?
Many thanks for your support.
-Hans-Uwe
Here is the simple test Nodeset.xml along with the code extract:
URI uri = MyServer.class.getResource(“test_nodeset_from_modeler.xml”).toURI();
ModelParser mp = new ModelParser(myServer.server.getNodeManagerTable());
mp.parseFile(uri);
Just noticed, that the XML didn’t come through (has been scrambled in this post). I can send it in per email as needed.
14:47, EET
December 21, 2011
The current “official” way to load the XML is to use server.getNodeManagerTable().loadModel(). We have not documented this too much, yet (since it’s not fully tested with UaModeler generated models), but it should work in general. Please, confirm if it works for you.
We are actually working on improved modelling support to be included in the SDK 2.0. More about that later, when we have something to publish…
15:48, EET
February 21, 2014
This works very well so far (based on a very simple model with just 2 nodes). Removing the UaModeler’s extensions is not too much work and really pays off in this case.
Are you eventually planning the extraction/export of a NodeSet.xml from a live server addressSpace portion as well? I’m building a rather complex custom aggregation server and would like to export parts of the aggregated addressSpace.
Many thanks for your quick response above.
15:02, EET
December 21, 2011
hbrackel said
This works very well so far (based on a very simple model with just 2 nodes). Removing the UaModeler’s extensions is not too much work and really pays off in this case.
The latest parser (maybe it’s in the 2.0 beta only?) should ignore the extensions as well.
Are you eventually planning the extraction/export of a NodeSet.xml from a live server addressSpace portion as well? I’m building a rather complex custom aggregation server and would like to export parts of the aggregated addressSpace.
That hasn’t been planned yet. We will need to consider it later, though.
Most Users Ever Online: 1919
Currently Online:
46 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: 726
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1525
Posts: 6456
Newest Members:
forrestdilke5, ernestoportus31, martin123, rickie5305, shaylamaggard4, rickyjuarez140, jonathonmcintyre, fannielima, kristiewinkle8, rustModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1028, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0
Administrators: admin: 1