How to use this thing / guidance needed #505
-
This may sound like a silly question, but I don't get how to use the SDK. I scrolled through the docs, the sample apps, the java-core and toolkit, issues, and discussion but I still don't get it. What I want to do is getting ye good olde POJOs from XMLs - in terms of this SDK this might be the "conceptual" representation from the "physical" (XML). I need to build applications atop all the different notice types and fields and ofc I don't want to read and understand every type and change things in my applications with every change to the XMLs. So I thought that the SDK was the way to go - to abstract away all the detail. What I expected was:
But it ain't seem to be any close to this. To me, it seems like the whole thing is made for creating and displaying documents and not to understand and process them. Did I miss a fundamental page in the docs? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Hello, The SDK provides the metadata to be used by any kind of application. If you want to only load notices xml into POJOs the closest you will get is by using the schemas/maindoc/*.xsd files (4 files, one per doc type) and use something like JAXB or an equivalent. I suggest you have a look at the editor demo if you want to see SDK usage, but this is web based with a front/back end logic: The editor demo is not covering everything right now but good enough to give you an idea on how to use the SDK. The SDK: And this part of the docs: |
Beta Was this translation helpful? Give feedback.
Hello,
The SDK provides the metadata to be used by any kind of application.
So yes those are just text files and apart from the EFX grammar, nothing close to code.
The xsds are the closest thing to the notice XML structure, but they will not help you for full validation (for that see schematron and CVS).
If you want to only load notices xml into POJOs the closest you will get is by using the schemas/maindoc/*.xsd files (4 files, one per doc type) and use something like JAXB or an equivalent.
Once you get that to work, try loading files from /examples/notices/
I recommend you use the SDK 8 RC 1 as we fixed many issues: https://github.com/OP-TED/eForms-SDK/tree/1.8.0-rc.1
I suggest you have…