easysoa / EasySOA

A light, collaborative platform to make Service Oriented Architecture simple.
http://www.easysoa.org
35 stars 8 forks source link

Reintegrate WSDL Preview in v1 #133

Closed mdutoo closed 11 years ago

mdutoo commented 11 years ago

For now WSDL Preview seems to be not in EasySOA v1 at https://github.com/easysoa/EasySOA-Incubation/tree/master/easysoa-registry-v1 but in v0 at https://github.com/easysoa/EasySOA/tree/master/easysoa-registry/easysoa-registry-core/src/main/java/org/easysoa/preview .

So :

FYI this seems to be your only contribution besides FraSCAti in Nuxeo bridge (and bug patches) still not to be in v1. I've looked up using git log --author=nuxeo.

mdutoo commented 11 years ago

Actually it is in v1 : https://github.com/easysoa/EasySOA-Incubation/tree/master/easysoa-registry-v1/easysoa-registry-doctypes-preview

The real problem is that the "any2html" converter goes after the "wsdl2html" converter for "text/xml" mime type, and the last one is being picked up (see in MimeTypeTranslationHelper.getConverterName()).

I've tried to require the bundle of any2html (org.nuxeo.ecm.platform.preview) to be loaded beforehands, using a "require" in deployment fragment (as described at see http://answers.nuxeo.com/questions/69/controlling-bundle-deployment-order ), but alas this doesn't change the ordering of contributions.

mdutoo commented 11 years ago

My bad and thanks to Arnaud : the "require" is to be done on the component ("org.nuxeo.ecm.platform.convert.preview.plugins", and not on the bundle) and put in the component ("", and not in the deployment fragment), as said at http://forum.nuxeo.com/t/5764/ or visible in Nuxeo web explorer on component "org.nuxeo.ecm.platform.convert.preview.plugins". It now works !