Open bpair opened 1 year ago
That's a strange combination and I'm not sure that is really a part of the OpenADR specification. Which VTN are you trying to communicate with?
According to the OpenADR XML schema, all payloads are always wrapped in the oadrSignedObject tag:
Is there documentation somewhere that says differently? Because then I will have to think about adjusting this.
I agree this is weird. I was trying to use code from https://github.com/avob/OpenADR The only thing in the spec is really about removing xml signatures to enable backward compatibility and it mentions removing the oadrSignedObject element. That would then not validate with the schema you reference. But then again why have a signedObject element wrap an unsigned element? I think I may have the XMLSignatures working in the avovb code after adding in some code to find the signed object element and attribute.
The VTN I am attempting to communicate with requires an X509 cert and TLS but not XML signatures. The messages are not signed but the payload contents are wrapped in an oadrSignedObject element which breaks the VTN. If there is no XML SIgnature then the oadrSignedObject should be removed.