how to create a restful web service server in AEM? | Community
Skip to main content
Level 2
October 16, 2015
Solved

how to create a restful web service server in AEM?

  • October 16, 2015
  • 2 replies
  • 1095 views

Hi,

    I want to create a restful web service server in AEM author site,so I can call this web service via java script from other site.

please tell me how to :

   1. how to create this service in AEM author site?

    2.how to process the request without login in CQ author site or set the authentication information in the request and can allow the request pass the authentication?

    

thanks!

yifei

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 Sham as pointed out - you can create an OSGi bunlde that can invoke a Restful web service. You can also create a sling servlet that can be invoked from other clients via a Rest request. See this article:

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

It talks about how to create a sling servlet that accepts REST requests. In this use case, its a Java client and it sends files. But you will get the idea of how to develop an AEM Sling Servlet that other clients can communicate with. 

2 replies

Sham_HC
Level 10
October 16, 2015
smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

As Sham as pointed out - you can create an OSGi bunlde that can invoke a Restful web service. You can also create a sling servlet that can be invoked from other clients via a Rest request. See this article:

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

It talks about how to create a sling servlet that accepts REST requests. In this use case, its a Java client and it sends files. But you will get the idea of how to develop an AEM Sling Servlet that other clients can communicate with.