I am working with the OpenSource OPC UA SDK from Microsoft available on GitHub and programming a client with it. Because of missing documentation, I am struggeling to get custom data types known by the Server into my Client. Also I need them for several method calls e.g. calling "ScanStart" with a paramater from the specific type "ScanSettings" which is only provided by the server. Is it possible to get such a (struct) data type with default values in a simple way? Does somebody know how and can provide an example? I found a description of what steps to do, but not how it is done with the Microsoft SDK:
So the client has to - read the DataTypeDictionaries and parse the value - browse the address space to map the encoding ids to the structure information - for binary encoded ExtensionObject: find the structure information from the TypeId and interpret.
Best regards
Below is an sample that calls a method with argument of type "Vector", which is a custom structured type that is provided by UnifiedAutomation's demo server "UaCppServer".
I first used UaExpert to discover the DataTypeId, EncodingId, ObjectId, MethodId, as well as guess the structure.