I manage to import the catalog from hybris to AEM. The products present in hybris got imported to /etc/ folder in AEM.
For a particular product , only basic information such as name,description,catagories have got imported to JCR. I happen to run AEM in debug mode during the import. From the logs I happen to see the following information is been provided by hybris to AEM for a particular product.
<product>
<code>6157032</code>
<name>X10 Mini</name>
<url>/v1/products/6157032</url>
<description>One-hand mini Android phoneBusy</description>
<purchasable>true</purchasable>
<summary><strong class="description-headline">One-hand ....</summary>
<manufacturer>Sony Ericsson</manufacturer>
<price>
<currencyIso>USD</currencyIso>
<value>333.0</value>
<priceType>BUY</priceType>
<formattedValue>$333.00</formattedValue>
</price>
<images>
<image>
<imageType>PRIMARY</imageType>
<format>zoom</format>
<url>/medias/sys_master/images/5488.jpg</url>
<altText>X10 Mini</altText>
</image>
<image>
<imageType>PRIMARY</imageType>
<format>product</format>
<url>/medias/sys_master/images/615.jpg</url>
<altText>X10 Mini</altText>
</image>
<image>
<imageType>PRIMARY</imageType>
<format>thumbnail</format>
<url>/medias/sys_master/images/222.jpg</url>
<altText>X10 Mini</altText>
</image>
</images>
<categories>
<category>
<code>smartphone</code>
<url>/telcoProductCatalog/smartphone</url>
</category>
<category>
<code>brand_sony</code>
<url>/Online/categories/brand_sony</url>
</category>
</categories>
<baseOptions />
</product>
I found in DefaultResponseParse.java that it is parsing only few tags responded by hybris. For example , the manufacture data comming from the above response XML is not parsed in this java file. Also even though price is parsed in this java code, it is not present in the JCR.
(a) How to make the price information available in JCR from the XML response provided by hybris
(b) Am I right to say that the above shown XML is actual response from hybris and if I want to get more information ( attributes etc) on a product in the XML returned by hybris, I need to make changes in the hybris level.