Forum Discussion
eli_donahue
9 years agoCommunity Manager
Hi Ketan,
An AML response will always have the following general structure:
The exact structure of the response depends on your data model and the query criteria sent to the server. However, if you know the structure of your data model in Aras and you know what data you'll need in your Java application, you can get a consistent AML result by tweaking your AML query (use the select attribute to retrieve only the properties you need) and use that as your "schema" for Jaxb.
If you can't achieve the XML structure you need through modifying the AML query alone, you could also use XPATH/XSLT to transform the AML result into a structure that is more compatible with Jaxb.
Hope that helps.
Eli
Eli Donahue Aras Labs Software Engineer
Eli Donahue Aras Labs Software Engineer