Highlighted

AEM forms app - Handling external webservice calls in offline mode

prabuj201987

27-01-2018

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.

Replies

Highlighted

James_R_Green

27-01-2018

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.

Highlighted

prabuj201987

27-01-2018

Hi James,

Thanks i have the source code already will check that.

Any idea about the GET calls to external webservice?

Highlighted

prabuj201987

27-01-2018

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?