<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.aras.com/community/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Creating java classes using AML schema</title><link>https://www.aras.com/community/f/development/3116/creating-java-classes-using-aml-schema</link><description>Hi all ,

I want to create an application in Java which connects to aras innovator and fetch data from it . For that I want to create &amp;#160;java classes for &amp;#160;business objects &amp;#160;like Item , Relationship ,etc using aras aml schema using Jaxb . But there is no</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Creating java classes using AML schema</title><link>https://www.aras.com/community/thread/87?ContentTypeID=1</link><pubDate>Fri, 30 Dec 2016 10:28:39 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:4c795454-eb93-4382-b8c2-a0d6af7027d2</guid><dc:creator>Former Member</dc:creator><description>The Aras AML schema is documented in the &amp;quot;XSLT Report Tool Users Guide&amp;quot; on page 19. I&amp;#39;ve extracted it from the document and pasted it below:

&amp;lt;xsd:schema xmlns:xsd=&amp;quot;&lt;a href="http://www.w3.org/2001/XMLSchema"&gt;&amp;quot;&amp;gt;www.w3.org/.../XMLSchema&amp;quot;&amp;gt;&lt;/a&gt;
&amp;lt;xsd:complexType name=&amp;quot;Item&amp;quot;&amp;gt;
&amp;lt;xsd:all&amp;gt;
&amp;lt;!-- Any user elements defined by the ItemType for the item --&amp;gt;
&amp;lt;xsd:complexType name=&amp;quot;Relationships&amp;quot; minOccurs=&amp;quot;0&amp;quot; maxOccurs=&amp;quot;1&amp;quot;&amp;gt;
&amp;lt;xsd:all&amp;gt;
&amp;lt;xsd:element name=&amp;quot;Item&amp;quot; minOccurs=&amp;quot;0&amp;quot; maxOccurs=&amp;quot;unbounded&amp;quot;&amp;gt;
&amp;lt;xsd:complexType&amp;gt;
&amp;lt;xsd:all&amp;gt;
&amp;lt;!-- Any user elements defined by the ItemType for the item --&amp;gt;
&amp;lt;xsd:attribute name=&amp;quot;id&amp;quot; type=&amp;quot;xsd:ID&amp;quot; /&amp;gt;
&amp;lt;xsd:attribute name=&amp;quot;type&amp;quot; type=&amp;quot;xsd:string&amp;quot; /&amp;gt;
&amp;lt;xsd:attribute name=&amp;quot;typeID&amp;quot; type=&amp;quot;xsd:IDREF&amp;quot; /&amp;gt;
&amp;lt;xsd:attribute name=&amp;quot;action&amp;quot; type=&amp;quot;xsd:string&amp;quot; /&amp;gt;
&amp;lt;xsd:attribute name=&amp;quot;sort_order&amp;quot; type=&amp;quot;xsd:integer&amp;quot; /&amp;gt;
&amp;lt;/xsd:all&amp;gt;
&amp;lt;/xsd:complexType&amp;gt;
&amp;lt;/xsd:element&amp;gt;
&amp;lt;/xsd:all&amp;gt;
&amp;lt;/xsd:complexType&amp;gt;
&amp;lt;/xsd:all&amp;gt;
&amp;lt;xsd:attribute name=&amp;quot;id&amp;quot; type=&amp;quot;xsd:ID&amp;quot; /&amp;gt;
&amp;lt;xsd:attribute name=&amp;quot;type&amp;quot; type=&amp;quot;xsd:string&amp;quot; /&amp;gt;
&amp;lt;xsd:attribute name=&amp;quot;typeID&amp;quot; type=&amp;quot;xsd:IDREF&amp;quot; /&amp;gt;
&amp;lt;xsd:attribute name=&amp;quot;action&amp;quot; type=&amp;quot;xsd:string&amp;quot; /&amp;gt;
&amp;lt;xsd:attribute name=&amp;quot;select&amp;quot; type=&amp;quot;xsd:string&amp;quot; /&amp;gt;
&amp;lt;xsd:attribute name=&amp;quot;order_by&amp;quot; type=&amp;quot;xsd:integer&amp;quot; /&amp;gt;
&amp;lt;xsd:union&amp;gt;
&amp;lt;xsd:attributeGroup&amp;gt;
&amp;lt;xsd:attribute name=&amp;quot;pagesize&amp;quot; type=&amp;quot;xsd:integer&amp;quot; /&amp;gt;
&amp;lt;xsd:attribute name=&amp;quot;page&amp;quot; type=&amp;quot;xsd:integer&amp;quot; /&amp;gt;
&amp;lt;/xsd:attributeGroup&amp;gt;
&amp;lt;xsd:attributeGroup&amp;gt;
&amp;lt;xsd:attribute name=&amp;quot;levels&amp;quot; type=&amp;quot;xsd:integer&amp;quot; /&amp;gt;
&amp;lt;xsd:attribute name=&amp;quot;config_path&amp;quot; type=&amp;quot;xsd:string&amp;quot; /&amp;gt;
&amp;lt;/xsd:attributeGroup&amp;gt;
&amp;lt;/xsd:union&amp;gt;
&amp;lt;/xsd:complexType&amp;gt;
&amp;lt;/xsd:schema&amp;gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Creating java classes using AML schema</title><link>https://www.aras.com/community/thread/85?ContentTypeID=1</link><pubDate>Fri, 30 Dec 2016 00:51:16 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:eaa7c928-7a49-43e9-a4f1-59c4cebbdf4a</guid><dc:creator>Former Member</dc:creator><description>Hi Eli,

Thanks for reply ! It is very helpful .

-Ketan .

&amp;nbsp;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Creating java classes using AML schema</title><link>https://www.aras.com/community/thread/83?ContentTypeID=1</link><pubDate>Wed, 28 Dec 2016 12:38:03 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:601dc84e-0614-40db-8e8a-ca1c51cf2790</guid><dc:creator>Eli Donahue</dc:creator><description>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&amp;#39;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 &amp;quot;schema&amp;quot; for Jaxb.

If you can&amp;#39;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

&lt;hr /&gt;

Eli Donahue

Aras Labs Software Engineer&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Creating java classes using AML schema</title><link>https://www.aras.com/community/thread/69?ContentTypeID=1</link><pubDate>Wed, 21 Dec 2016 06:03:40 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:1a955e1b-a0f0-453f-bfb1-a2748c4a4538</guid><dc:creator>Former Member</dc:creator><description>&amp;nbsp;

Hi Eli ,

Thanks for reply . As you mentioned above I have used the SOAP request to send the request to server . And I got the response in the form of SOAP message . But I cannot always use that XML format for further processing . I want that response to be stored in some java objects so that I can use it easily . So I searched for it and I found that Jaxb can convert a schema to its equivalent java classes but there was no fixed schema definition for AML . So is there any way so that I can get AML schema from server or some method to convert that response to its java objects ?

Thanks for help !

Ketan .&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Creating java classes using AML schema</title><link>https://www.aras.com/community/thread/64?ContentTypeID=1</link><pubDate>Tue, 20 Dec 2016 16:43:30 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:e8b0480d-4781-4fcf-a71b-e9dee0398fbb</guid><dc:creator>Eli Donahue</dc:creator><description>Hi Ketan,

I&amp;#39;ve never used Java to connect to Aras, but it looks Oracle has a Java API for handling SOAP messages: &lt;a href="https://docs.oracle.com/javase/8/docs/api/javax/xml/soap/package-summary.html"&gt;https://docs.oracle.com/javase/8/docs/api/javax/xml/soap/package-summary.html&lt;/a&gt;.

That&amp;#39;s probably where I would start my research.

Eli

&lt;hr /&gt;

Eli Donahue

Aras Labs Software Engineer&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>