cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Implementing a Dynamic Extension :payload-canonical-datahub-extension.xml

Former Member
0 Kudos
222

Hi , i was trying to implement a Dynamic Extension .

While changing in raw and canonincal item ,need to post the request via payload-canonical-datahub-extension.xml , Which will help to to create dynamic extension . can any one help me to get payload-canonical-datahub-extension.xml .?

I am unable to get. https://help.hybris.com/6.6.0/hcd/8147c37675ff46578c2ce6f40039e091.html

Manish

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member387866
Active Contributor
0 Kudos

Hi Manish,

The payload-canonical-datahub-extension.xml file is probably just the file name of the XML examples given in the Tutorial.

It seems to be just "payload" as the prefix to the XML file's name attribute's value.

So just save a file with that name and probably these contents (as they're what's in the log message in the expanded Code Sample)

 <extension xmlns="http://www.hybris.com/schema/" name="dynamic-canonical-datahub-extension">
     <canonicalItems>
         <item>
             <type>CanonicalProduct</type>
             <attributes>
                 <attribute>
                     <name>manid</name>
                     <model>
                         <localizable>false</localizable>
                         <collection>false</collection>
                         <type>String</type>
                         <primaryKey>true</primaryKey>
                     </model>
                 </attribute>
                 <attribute>
                     <name>prodid</name>
                     <model>
                         <localizable>false</localizable>
                         <collection>false</collection>
                         <type>String</type>
                         <primaryKey>true</primaryKey>
                     </model>
                 </attribute>
                 <attribute>
                     <name>name</name>
                     <model>
                         <localizable>false</localizable>
                         <collection>false</collection>
                         <type>String</type>
                         <primaryKey>false</primaryKey>
                     </model>
                 </attribute>
                 <attribute>
                     <name>description</name>
                     <model>
                         <localizable>false</localizable>
                         <collection>false</collection>
                         <type>String</type>
                         <primaryKey>false</primaryKey>
                     </model>
                 </attribute>
             </attributes>
         </item>
     </canonicalItems>
 </extension>

Regards,
Luke

Former Member
0 Kudos

Hi Luke ,

dynamic-canonical-datahub-extension.xml ,i need to create jar of this. This jars can loaded in datahub.

But execution of dynamic extension steps i will be passing below commands: curl -k -u admin:nimda -H "Content-type:application/xml" --data-binary @payload-canonical-datahub-extension.xml https://localhost:8443/datahub-webapp/v1/extensions

where payload-canonical-datahub-extension.xml is going to work like input as per my understanding for dynamic extension creation .

Manish