Is it good approach to develop a web services in CQ itself? | Community
Skip to main content
Level 3
October 16, 2015
Solved

Is it good approach to develop a web services in CQ itself?

  • October 16, 2015
  • 3 replies
  • 743 views

Hi,

I need to develop a web services and it needs to be hosted in Adobe CQ. I knew that CQ consume web services from other systems. We will need to create a OSGI bundle for this. I heard that Adobe not recommended to develop web services in CQ. Is it good approach to develop a web services in CQ itself? What happens if we host it in CQ?

Please share your feedback.

Thanks,

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

As shown in these 2 reponses - CQ supports consuming a soap stack. However - CQ does not expose a SOAP web service. But - CQ does support third party apps sending HTTP Requests to CQ and CQ performing an action and returning data in an HTTP Response. This is really what a SOAP web service (that exposes a WSDL) is. 

You can write a custom Sling Servlet, the SLing Servlet can call other services or perform tasks using Java within CQ and return a HTTP Response that contains data to the invoking app. So CQ supports HTTP Restful web service. 

We have an example of that in this article. A Java app sends an HTTP request and posts data to a CQ Servlet.

[img]app.png[/img]

See: http://helpx.adobe.com/experience-manager/using/post_files.html

3 replies

WhoaShekhar
Level 10
October 16, 2015

Hi There,

Thanks for reaching out to Adobe Community.

You may want to read the community article:

http://helpx.adobe.com/experience-manager/using/creating-cq-bundles-consume-web.html

Thanks!

Lokesh_Shivalingaiah
Level 10
October 16, 2015

if you want to consume 3rd party application through SOAP API, you can create webservices within CQ and host it 

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

As shown in these 2 reponses - CQ supports consuming a soap stack. However - CQ does not expose a SOAP web service. But - CQ does support third party apps sending HTTP Requests to CQ and CQ performing an action and returning data in an HTTP Response. This is really what a SOAP web service (that exposes a WSDL) is. 

You can write a custom Sling Servlet, the SLing Servlet can call other services or perform tasks using Java within CQ and return a HTTP Response that contains data to the invoking app. So CQ supports HTTP Restful web service. 

We have an example of that in this article. A Java app sends an HTTP request and posts data to a CQ Servlet.

[img]app.png[/img]

See: http://helpx.adobe.com/experience-manager/using/post_files.html