-
Notifications
You must be signed in to change notification settings - Fork 961
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom NamespaceUri not available when serializing ExtensionObject #3024
Labels
bug
A bug was identified and should be fixed.
Comments
@pzatschl I get the Error BadTooManyArguments following your scenario. Two things i noticed:
|
How can i create a custom structure Object? |
@raserle thanks for the insights. It seems BaseComplexType & Variant could have the same Issue. |
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Type of issue
Current Behavior
When trying to serialize an ExtensionObject to JSON, an Exception is thrown because the corresponding NamespaceURI is not found.
Use case is calling a method with a custom parameter in a KVP array:

When trying to serialize...


...an exception is thrown:
At the same time I don't see any way to configure the context to include my custom namespace.
Line 2881 creation of ExtensionObject:


Already there is only one Namespace present:
Expected Behavior
I would expect for the context at this point to either be configurable or already be containing my custom namespace.
Following the lead of the NamespaceUris being set, one can follow several layers of nesting that amount to setting the value to a string that is hardcoded.
Maybe my approach is wrong altogether?
Steps To Reproduce
OPC_Methoden_Parameter_Test.zip
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: