software-competence-center-hagenberg / NodeDoc

https://nodedoc-demo.scch.at/
MIT License
7 stars 1 forks source link

Method Signature wrong Namespace Index #4

Open wrnotc opened 3 months ago

wrnotc commented 3 months ago

In the Method Signature the wrong Namespace Index is used.

I tried it with a minimal example where I created 2 different Nodesets. One is the base and on the dependent note set. In both I defined one structure (one named StructureInBase and one named StructureInDependent) .

When I created a method using both structures as data type for the input/output arguments the tool output the following:

1:MethodInDependent (
    [in]   1:StructureInBase         ExampleInput
    [out]  1:StructureInDependent    ExampleOutput
);

But the SturctureInBase and StructureInDependent are DataTypes of different Namespaces. And therefore 2:StructureInBase would be correct.

From the XML:

...
<NamespaceUris>
<Uri>http://yourorganisation.org/dependentnodeset/</Uri>
<Uri>http://yourorganisation.org/basenodeset/</Uri>
</NamespaceUris>
...
<uax:Argument>
    <uax:Name>ExampleInput</uax:Name>
    <uax:DataType>
        <uax:Identifier>ns=2;i=3003</uax:Identifier>
    </uax:DataType>
    <uax:ValueRank>-1</uax:ValueRank>
    <uax:ArrayDimensions/>
    <uax:Description/>
</uax:Argument>
...
<uax:Argument>
    <uax:Name>ExampleOutput</uax:Name>
    <uax:DataType>
        <uax:Identifier>ns=1;i=3003</uax:Identifier>
    </uax:DataType>
    <uax:ValueRank>-1</uax:ValueRank>
    <uax:ArrayDimensions/>
    <uax:Description/>
</uax:Argument>
wrnotc commented 3 months ago

The TypeDefinition of Object Types also seams to have a wrong namespace indices. They seem to only take the values 0 for UA (which will not be printed) or 1 for everything else.

bdorninger commented 6 days ago

Can you provide these nodesets?

wrnotc commented 5 days ago

I already deleted the old minimal example, so I created a new one. The names do not match to the description above 1:1 but you should understand the problem.

NodeDoc_MethodSignatureWrongNamespaceIndex_MinimalExample.zip