2 Replies Latest reply on May 22, 2012 12:01 PM by lancedolan

    How to consume REST WebService using Axis2 in Adobe CQ5.5

    abhaymish1 Level 1

      Hi All,

          How to consume REST WebService using Axis2 in Adobe CQ5.5 ?

       

      Please help me with this.Thanks very much for your help.

       

       

       

      Thanks & Regards,

      Kumar

        • 1. Re: How to consume REST WebService using Axis2 in Adobe CQ5.5
          nicolas peltier Adobe Employee

          Hi,

           

          your question looks ackward...are we talking about REST, or SOAP?

          if you have the choice, use REST that is natively supported by CQ thanks to Apache Sling, and leave Axis2.

           

          If not, you'll have to deploy Axis2 as an OSGI bundle :

          http://stackoverflow.com/questions/5994323/how-to-make-axis2-run-in-an-osgi-environment

           

          hope this helps.

          • 2. Re: How to consume REST WebService using Axis2 in Adobe CQ5.5
            lancedolan Level 1

            We had enough trouble getting the "osgi compliant" Axis2 library to run in OSGI without spooky failures that we ended up re-writing everything utilizng JAX-WS. JAX-WS is present in the underlying JDK, you just need to create an OSGI fragment bundle that exposes these classes from the JDK. So basically a bundle that just exports:

             

            com.sun.xml.ws,

                                            com.sun.xml.ws.addressing,

                                            com.sun.xml.ws.addressing.model,

                                            com.sun.xml.ws.addressing.v200408,

                                            com.sun.xml.ws.api,

                                            com.sun.xml.ws.api.addressing,

                                            com.sun.xml.ws.api.client,

                                            com.sun.xml.ws.api.fastinfoset,

                                            com.sun.xml.ws.api.handler,

                                            com.sun.xml.ws.api.message,

                                            com.sun.xml.ws.api.message.stream,

                                            com.sun.xml.ws.api.model,

                                            com.sun.xml.ws.api.model.soap,

                                            com.sun.xml.ws.api.model.wsdl,

                                            com.sun.xml.ws.api.pipe,

                                            com.sun.xml.ws.api.pipe.helper,

                                            com.sun.xml.ws.api.server,

                                            com.sun.xml.ws.api.streaming,

                                            com.sun.xml.ws.api.wsdl.parser,

                                            com.sun.xml.ws.api.wsdl.writer,

                                            com.sun.xml.ws.binding,

                                            com.sun.xml.ws.client,

                                            com.sun.xml.ws.client.dispatch,

                                            com.sun.xml.ws.client.sei,

                                            com.sun.xml.ws.developer,

                                            com.sun.xml.ws.developer.servlet,

                                            com.sun.xml.ws.encoding,

                                            com.sun.xml.ws.encoding.fastinfoset,

                                            com.sun.xml.ws.encoding.soap,

                                            com.sun.xml.ws.encoding.soap.streaming,

                                            com.sun.xml.ws.encoding.xml,

                                            com.sun.xml.ws.fault,

                                            com.sun.xml.ws.handler,

                                            com.sun.xml.ws.message,

                                            com.sun.xml.ws.message.jaxb,

                                            com.sun.xml.ws.message.saaj,

                                            com.sun.xml.ws.message.source,

                                            com.sun.xml.ws.message.stream,

                                            com.sun.xml.ws.model,

                                            com.sun.xml.ws.model.soap,

                                            com.sun.xml.ws.model.wsdl,

                                            com.sun.xml.ws.org.objectweb.asm,

                                            com.sun.xml.ws.protocol.soap,

                                            com.sun.xml.ws.protocol.xml,

                                            com.sun.xml.ws.resources,

                                            com.sun.xml.ws.server,

                                            com.sun.xml.ws.server.provider,

                                            com.sun.xml.ws.server.sei,

                                            com.sun.xml.ws.server.servlet,

                                            com.sun.xml.ws.spi,

                                            com.sun.xml.ws.streaming,

                                            com.sun.xml.ws.transport,

                                            com.sun.xml.ws.transport.http,

                                            com.sun.xml.ws.transport.http.client,

                                            com.sun.xml.ws.transport.http.server,

                                            com.sun.xml.ws.transport.http.servlet,

                                            com.sun.xml.ws.util,

                                            com.sun.xml.ws.util.exception,

                                            com.sun.xml.ws.util.localization,

                                            com.sun.xml.ws.util.pipe,

                                            com.sun.xml.ws.util.xml,

                                            com.sun.xml.ws.wsdl.parser,

                                            com.sun.xml.ws.wsdl.writer,

                                            com.sun.xml.ws.wsdl.writer.document,

                                            com.sun.xml.ws.wsdl.writer.document.http,

                                            com.sun.xml.ws.wsdl.writer.document.soap,

                                            com.sun.xml.ws.wsdl.writer.document.soap12,

                                            com.sun.xml.ws.wsdl.writer.document.xsd,

                                            com.sun.xml.internal.bind,

                                            com.sun.xml.internal.bind.v2,

                                            com.sun.xml.internal.ws,

                                            com.sun.xml.internal.ws.addressing,

                                            com.sun.xml.internal.ws.addressing.model,

                                            com.sun.xml.internal.ws.addressing.v200408,

                                            com.sun.xml.internal.ws.api,

                                            com.sun.xml.internal.ws.api.addressing,

                                            com.sun.xml.internal.ws.api.client,

                                            com.sun.xml.internal.ws.api.fastinfoset,

                                            com.sun.xml.internal.ws.api.handler,

                                            com.sun.xml.internal.ws.api.message,

                                            com.sun.xml.internal.ws.api.message.stream,

                                            com.sun.xml.internal.ws.api.model,

                                            com.sun.xml.internal.ws.api.model.soap,

                                            com.sun.xml.internal.ws.api.model.wsdl,

                                            com.sun.xml.internal.ws.api.pipe,

                                            com.sun.xml.internal.ws.api.pipe.helper,

                                            com.sun.xml.internal.ws.api.server,

                                            com.sun.xml.internal.ws.api.streaming,

                                            com.sun.xml.internal.ws.api.wsdl.parser,

                                            com.sun.xml.internal.ws.api.wsdl.writer,

                                            com.sun.xml.internal.ws.binding,

                                            com.sun.xml.internal.ws.client,

                                            com.sun.xml.internal.ws.client.dispatch,

                                            com.sun.xml.internal.ws.client.sei,

                                            com.sun.xml.internal.ws.developer,

                                            com.sun.xml.internal.ws.encoding,

                                            com.sun.xml.internal.ws.encoding.fastinfoset,

                                            com.sun.xml.internal.ws.encoding.soap,

                                            com.sun.xml.internal.ws.encoding.soap.streaming,

                                            com.sun.xml.internal.ws.encoding.xml,

                                            com.sun.xml.internal.ws.fault,

                                            com.sun.xml.internal.ws.handler,

                                            com.sun.xml.internal.ws.message,

                                            com.sun.xml.internal.ws.message.jaxb,

                                            com.sun.xml.internal.ws.message.saaj,

                                            com.sun.xml.internal.ws.message.source,

                                            com.sun.xml.internal.ws.message.stream,

                                            com.sun.xml.internal.ws.model,

                                            com.sun.xml.internal.ws.model.soap,

                                            com.sun.xml.internal.ws.model.wsdl,

                                            com.sun.xml.internal.ws.org.objectweb.asm,

                                            com.sun.xml.internal.ws.protocol.soap,

                                            com.sun.xml.internal.ws.protocol.xml,

                                            com.sun.xml.internal.ws.resources,

                                            com.sun.xml.internal.ws.server,

                                            com.sun.xml.internal.ws.server.provider,

                                            com.sun.xml.internal.ws.server.sei,

                                            com.sun.xml.internal.ws.spi,

                                            com.sun.xml.internal.ws.streaming,

                                            com.sun.xml.internal.ws.transport,

                                            com.sun.xml.internal.ws.transport.http,

                                            com.sun.xml.internal.ws.transport.http.client,

                                            com.sun.xml.internal.ws.transport.http.server,

                                            com.sun.xml.internal.ws.util,

                                            com.sun.xml.internal.ws.util.exception,

                                            com.sun.xml.internal.ws.util.localization,

                                            com.sun.xml.internal.ws.util.pipe,

                                            com.sun.xml.internal.ws.util.xml,

                                            com.sun.xml.internal.ws.wsdl.parser,

                                            com.sun.xml.internal.ws.wsdl.writer,

                                            com.sun.xml.internal.ws.wsdl.writer.document,

                                            com.sun.xml.internal.ws.wsdl.writer.document.http,

                                            com.sun.xml.internal.ws.wsdl.writer.document,

                                            com.sun.xml.internal.ws.wsdl.writer.document.soap,

                                            com.sun.xml.internal.ws.wsdl.writer.document.soap12,

                                            com.sun.xml.internal.ws.wsdl.writer.document.xsd,

                                            com.sun.xml.internal.messaging.saaj.soap