Expand my Community achievements bar.

SOLVED

How do you consume Webservice in Adobe CQ5

Avatar

Former Community Member

From Adobe CQ5 help http://helpx.adobe.com/adobe-cq/using/creating-cq-bundles-consume-web.html, I noticed that we can use OSGi bundle to consume 3rd party webservice. 

Please let me know whether the same solution mentioned in the link works for Adobe CQ 5.4 version. If not, please provide me the link for consuming webservice in Adobe CQ 5.4    

1 Accepted Solution

Avatar

Correct answer by
Level 10

We have had community feedback that this approach does work with CQ 5.4. All we are doing here is wrapping Java proxy classes that consume the WSDL into an OSGi bundle and configuring the sling props file to use sun classes. Add the following line of code to the sling props file as discussed in the article:

sling.bootdelegation.com.sun=com.sun.*

Hope this helps

View solution in original post

3 Replies

Avatar

Level 2

Hi Venkatesh,

To add on to this thread, you can also refer to the following links:

  1. How to integrate a SOAP web service toolkit with Adobe CQ/WEM - http://www.wemblog.com/2012/03/how-to-integrate-soap-web-service.html
  2. You can load third party jar as boot delegation (Require restart) - http://dev.day.com/kb/content/wiki/kb/cq5/Development/SlingBootdelegation.html
  3. Create OSGI bundle and install it thorough felix console - http://dev.day.com/content/kb/home/cq5/Development/CreatingExtension.html
  4. How to Convert a jar File into an OSGi Bundle - http://dev.day.com/content/kb/home/cq5/Development/ApacheFelix/ConvertAJarIntoOsgiBundle.html

You could also try to find if there is already a OSGI bundle exist for above jars. For example for above jars you might get OSGI bundle from http://www.knopflerfish.org/releases/2.0.0/jars/axis-osgi/axis-osgi_all-0.1.0.html

Please note that CRXDE doesn't include *any* project jar files. The project class path is dynamically built from the jar files deployed in-content on the server. The projects classpath can be customized by dragging additional jar files into the etc/crxde/profiles/default/libs folder and running "Build/Refresh Classpath" from the context menu.

However, you can also go to CRXDE -> Package Explorer -> .classpath.xml file and add jar file location for your jar file. you can add following line in the end of .classpath file like:
<classpathentry kind="lib" path="WebContent/etc/crxde/profiles/default/libs/<JarName>.jar"/>

 

Hope this is helpful.

Thanks,

Gaurav

Avatar

Level 2

Hi Venkatesh,

You can refer to Configuring OSGi article for CQ 5.4 version. I hope this would help to answer your question. I have also requested our Product Experts to help you in this regards.

Please let me know in case need any further information here.

Thanks

Avatar

Correct answer by
Level 10

We have had community feedback that this approach does work with CQ 5.4. All we are doing here is wrapping Java proxy classes that consume the WSDL into an OSGi bundle and configuring the sling props file to use sun classes. Add the following line of code to the sling props file as discussed in the article:

sling.bootdelegation.com.sun=com.sun.*

Hope this helps