on 03-12-2016 11:14 PM
Can someone clarify, when it comes to extending commerce web service (OCC), what is the difference between extending using the ycommercewebservices vs. using yoccaddon?
I understand that the addon concept allows you to basically develop within your addon, the files get copied over, and therefore you can upgrade the commerce web services without losing your customizations.
But if I create my own web services extension by using extgen and using ycommercewebservices as the template to create e.g. mycommercewebservices, isn't that the same thing? I am not modifying the original commerce web services in this case either?
Any clarification would be helpful.
When you are using addOn concept(yoccaddon):
you can separate your customization in specific addOn
you can easier upgrade your Commerce Web Services to new version (you just generate Web Services from new ycommercewebservices version and install your addons)
such addOn can be also used by somebody else in their Commerce Web Services
Writing addOn can be little bit harder than just customizing extension generated from ycommercewebservices :
you have to know how to write addOns (https://wiki.hybris.com/display/release5/Creating+an+AddOn+for+OCC+Web+Services, https://wiki.hybris.com/display/release5/Extending+Commerce+Web+Services)
you should not use the class defined in ycommercewebservices. The package name for such a class will be different once the extgen process is completed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Good explanation! My point of confusion is that if ycommercewebservices is a template extension. I could create "mycommercewebservices" using this template. Thus it is meant to be extended the underlying base commercewebservices. But from what you are saying, I suppose, it is not possible to upgrade the base commercewebservices without losing the changes in the extended mycommercewebservices. Correct?
User | Count |
---|---|
6 | |
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.