Martin Regen
cfc68eeb10
Use .NET analyzers instead of Roslynator, fix warnings, no bug fixes ( #1729 )
...
-use latests analyzers in .NET instead of Roslynator.
-fix warnings and formatting, no bug fixes!
2022-03-14 16:39:09 +01:00
Martin Regen
24f90c410a
Add interfaces IServiceMessageContext, IEncodeableFactory ( #1407 )
...
* use IServiceMessageContext instead of ServiceMessageContext across the board.
* same for IEncodeableFactory
2021-06-11 16:35:46 +02:00
Martin Regen
9923141e70
Enable .NET analyzers for all projects ( #1414 )
...
* Enable .NET analyzers for all projects
* fix all new warnings, mostly security and perf
2021-06-05 07:58:38 +02:00
Sebastian Baeumler
ea1e2b35db
Fixed issue with XML namespace schema while decode an XML nodeset ( #1385 )
...
- added protected property XmlNamespace to BaseComplexType class
- use XmlNamespace instead of TypeId.NamespaceUri for PushNamespace of
encoder/decoder
- adapt Encode/Decode method in OptionalFieldsCompexType and
UnionComplexType class
Change was needed if Xml schema in Xml nodeset differ from the custom OPC UA namespace.
Only effects XML encoding and decoding from values of customized structured datatypes.
Example:
The OPC UA Namespace of the nodeset is http://MyTestOfExtensions but the xml namespace for the xml schema is http://MyTestOfExtensions/Types.xsd
These 2 namespaces are not forced to be equal, therefor the XmlDecoder need to Push the XmlNamespace for the schema to the Reader stack. Otherwise the ExtensionObject Body will not be read.
```XML
<?xml version="1.0" encoding="utf-8"?>
<UANodeSet LastModified="2021-04-08T11:57:22.286Z" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance " xmlns="http://opcfoundation.org/UA/2011/03/UANodeSet.xsd " xmlns:uax="http://opcfoundation.org/UA/2008/02/Types.xsd " xmlns:si="http://www.siemens.com/OPCUA/2017/SimaticNodeSetExtensions " xmlns:xsd="http://www.w3.org/2001/XMLSchema ">
<NamespaceUris>
<Uri>http://MyTestOfExtensions </Uri>
</NamespaceUris>
<Models>
<Model ModelUri="http://MyTestOfExtensions " PublicationDate="2020-07-20T00:00:00Z" Version="1.00">
<RequiredModel ModelUri="http://opcfoundation.org/UA/ " PublicationDate="2020-07-15T00:00:00Z" Version="1.04.7"/>
</Model>
</Models>
<Aliases>
<Alias Alias="Boolean">i=1</Alias>
<Alias Alias="DateTime">i=13</Alias>
<Alias Alias="String">i=12</Alias>
<Alias Alias="NodeId">i=17</Alias>
<Alias Alias="QualifiedName">i=20</Alias>
<Alias Alias="HasComponent">i=47</Alias>
<Alias Alias="HasProperty">i=46</Alias>
<Alias Alias="Organizes">i=35</Alias>
<Alias Alias="HasSubtype">i=45</Alias>
<Alias Alias="HasTypeDefinition">i=40</Alias>
<Alias Alias="HasModellingRule">i=37</Alias>
<Alias Alias="HasEncoding">i=38</Alias>
</Aliases>
<Extensions>
<Extension>
<si:Generator Product="SiOME" Edition="Standard" Version="2.2.3-beta24"/>
</Extension>
<Extension>
<si:GeneratorExtension Hash="cee97a4b7b32c169214c2bbc22b555d2"/>
</Extension>
</Extensions>
<UAObject SymbolicName="http___MyTestOfExtensions" NodeId="ns=1;i=5000" BrowseName="1:http://MyTestOfExtensions " ParentNodeId="i=11715">
<DisplayName>http://MyTestOfExtensions </DisplayName>
<References>
<Reference ReferenceType="HasComponent" IsForward="false">i=11715</Reference>
<Reference ReferenceType="HasTypeDefinition">i=11616</Reference>
</References>
</UAObject>
<UAVariable DataType="String" NodeId="ns=1;i=6002" BrowseName="NamespaceUri" ParentNodeId="ns=1;i=5000">
<DisplayName>NamespaceUri</DisplayName>
<References>
<Reference ReferenceType="HasProperty" IsForward="false">ns=1;i=5000</Reference>
<Reference ReferenceType="HasTypeDefinition">i=68</Reference>
</References>
<Value>
<uax:String>http://MyTestOfExtensions </uax:String>
</Value>
</UAVariable>
<UADataType NodeId="ns=1;i=3000" BrowseName="1:MyStructureType">
<DisplayName>MyStructureType</DisplayName>
<References>
<Reference ReferenceType="HasSubtype" IsForward="false">i=22</Reference>
<Reference ReferenceType="HasEncoding">ns=1;i=5001</Reference>
<Reference ReferenceType="HasEncoding">ns=1;i=5002</Reference>
</References>
<Definition Name="1:MyStructureType">
<Field DataType="i=17" Name="NodeId"/>
<Field DataType="i=20" Name="QualifiedName"/>
</Definition>
</UADataType>
<UAObject SymbolicName="DefaultBinary" NodeId="ns=1;i=5001" BrowseName="Default Binary">
<DisplayName>Default Binary</DisplayName>
<References>
<Reference ReferenceType="HasTypeDefinition">i=76</Reference>
</References>
</UAObject>
<UAObject SymbolicName="DefaultXML" NodeId="ns=1;i=5002" BrowseName="Default XML">
<DisplayName>Default XML</DisplayName>
<References>
<Reference ReferenceType="HasTypeDefinition">i=76</Reference>
</References>
</UAObject>
<UAVariable DataType="ns=1;i=3000" NodeId="ns=1;i=6021" BrowseName="1:StructureTest" ParentNodeId="i=2253" UserAccessLevel="3" AccessLevel="3">
<DisplayName>StructureTest</DisplayName>
<References>
<Reference ReferenceType="Organizes" IsForward="false">i=2253</Reference>
<Reference ReferenceType="HasTypeDefinition">i=63</Reference>
</References>
<Value>
<uax:ExtensionObject>
<uax:TypeId>
<uax:Identifier>ns=1;i=5002</uax:Identifier>
</uax:TypeId>
<uax:Body>
<MyStructureType xmlns="http://MyTestOfExtensions/Types.xsd ">
<NodeId>
<uax:Identifier>ns=1;i=42</uax:Identifier>
</NodeId>
<QualifiedName>
<uax:NamespaceIndex>1</uax:NamespaceIndex>
<uax:Name>zweiundvierzig</uax:Name>
</QualifiedName>
</MyStructureType>
</uax:Body>
</uax:ExtensionObject>
</Value>
</UAVariable>
</UANodeSet>
```
2021-04-30 07:42:53 +02:00
Martin Regen
631e729787
Fix warnings, improve complex type exception handler ( #1384 )
...
- catch exception in complex type system not only for ServiceResultException
- add fast path for single type loader if type already exists
- fix many warnings, no function change
- fix template for legacy nuget packages to include cert lib
2021-04-28 18:34:43 +02:00
Martin Regen
8c216e78f4
Replace CRLF in debug strings with AppendLine and improve cert validator tests ( #1220 )
...
- improve cross platform support, replace CRLF by AppendLine
- replace $format trace messages with {} style
- fix warnings for comments and protected fields, null parameter checks
- replace cert factory calls with new API (obsolete warnings)
- allow to run cert validator tests in parallel using new temp cert validator class
- more test cases for cert validator, e.g wth cert validation callback
- improve cert validator for special cases
2020-12-23 00:17:09 +01:00
Martin Regen
7f3f0dbbb4
Service update, fix many warnings for Xml comments ( #1146 )
...
- no bug fixes, just documentation and formatting
- fix all warnings for xml in core libraries, except
-- protected members
-- suppressed warnings in Opc.Ua.Gds libraries (tbd)
2020-10-14 12:00:01 +02:00
AlinMoldovean
764c481405
Update Copyright year to 2020
2020-10-07 18:04:34 +03:00
Alin Moldovean
195521719e
Move SDK folder to "Libraries" ( #1013 )
...
* Move Client library
* Move Server library
* Move Configuration library
* Move Complex Types library
* Update paths in project references
2020-06-09 18:46:08 +03:00