Skip to content
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

Question: using 2.0a XSD files instead of the supplied 2.0b schema #155

Open
4dahalibut opened this issue Apr 24, 2023 · 1 comment
Open
Labels
wontfix This will not be worked on

Comments

@4dahalibut
Copy link

Hey Stan,
Would it be possible for you to support both 2.0a and 2.0b schema with openleadr? The client we're trying to integrate with is sending us requests on a 2.0a namespace such as the following

<?xml version="1.0" encoding="UTF-8"?>
<ns1:oadrRequestEvent xmlns="http://docs.oasis-open.org/ns/energyinterop/201110" xmlns:ns1="http://openadr.org/oadr-2.0a/2012/07" xmlns:ns2="http://docs.oasis-open.org/ns/energyinterop/201110/payloads">
    <ns2:eiRequestEvent>
        <ns2:requestID>FCFB4D0617944DE3B8DACC477435D07D</ns2:requestID>
        <venID>XXX</venID>
    </ns2:eiRequestEvent>
</ns1:oadrRequestEvent>

And serving this request is resulting in the following error

XML schema validation of incoming message failed: Element '{http://openadr.org/oadr-2.0a/2012/07}oadrRequestEvent': No matching global declaration available for the validation root. (<string>, line 0).
@stan-janssen
Copy link
Member

At the moment that is not possible; OpenLEADR is 2.0b only. If you find a neat way to support both, I'd be open to any pull requests to get started.

@axmsoftware axmsoftware added the wontfix This will not be worked on label Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants