Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

AEM forms app - Handling external webservice calls in offline mode

Avatar

Level 3

Hi, We have a requirement where we need to somehow get or post data to the external webservice while in offline mode using AEM forms app.

For GET calls, can we somehow cache the response by synching periodically to the external webservice and use it during offline?

For POST calls, can we somehow cache the data posted during offline and send it to external webservice once the device is online.

We have AEM forms J2EE version as well.

Kindly advise on the feasibility.

4 Replies

Avatar

Level 7

Hi prabuj201987

Have you seen the source code for the aem forms app? It can be downloaded from packageshare.

By default I think that the aem forms app has a sort of 'outbox' where submitted data sits until you get an Internet connection, because the source code is available maybe have a play around with what is there by default and extend it to your needs.

Avatar

Level 3

Hi James,

Thanks i have the source code already will check that.

Any idea about the GET calls to external webservice?

Avatar

Level 3

As mentioned in the below URL, there is a provision to add Manual Resource Paths.

AEM 6.1 Forms Help | Working in the offline mode

Can i add REST/SOAP URLs here?

Where can i get more documentation about this feature?

Avatar

Level 10

I am not sure this exact use case is documented. We have asked the Eng team to look at this question.