on 2018 Apr 18 5:00 PM - last edited on 2024 Feb 04 5:28 AM by postmig_api_4
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.