User defined encodeable type should be able to use other namespace than NS0
Description
The current API of SOPC_EncodeableType
and SOPC_EncodeableType_GetEncodeableType
/ SOPC_EncodeableType_GetUserType
/ SOPC_Variant_Get_DataType
does not allow to have other namespace than NS 0. SOPC_EncodeableType
includes a Namespace URI but this is not managed yet (see #1060).
Implementation
Add a Namespace index in SOPC_EncodeableType
which should be considered when Namespace URI is not defined (NULL) and add namespace index as parameter to SOPC_EncodeableType_GetEncodeableType
/ SOPC_EncodeableType_GetUserType
/ SOPC_Variant_Get_DataType
functions.
Fix ExtensionObject encoder/decoder to use the namespace index for retrieving encodeable type.
Fix SOPC_Variant_Get_DataType
to set the namespace index based on encodeable type.