Expand my Community achievements bar.

SOLVED

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

Avatar

Level 3

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,

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

View solution in original post

3 Replies

Avatar

Level 10

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!

Avatar

Level 10

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

Avatar

Correct answer by
Level 10

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