aem forms submission to external end point

Avatar

Avatar

amitcsknit

Avatar

amitcsknit

amitcsknit

04-09-2020

When I submit my aem form to the external endpoint and access data at an external server-side application. It comes as an XML. Is it a normal way of working for it or I did some mistake. I was expecting data as params but I get the whole form as big XML. If wanted to use that data I need to parse the whole XML & get that data extract.

 

{jcr:data=<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<afData>
<afUnboundData>
<data>
 all data inside in different tags.
</afData

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

GirishBedekar

Avatar

GirishBedekar

GirishBedekar

04-09-2020

Yes that is correct

parse that string as org.w3c document and you can extract individual values

 

Answers (4)

Answers (4)

Avatar

Avatar

amitcsknit

Avatar

amitcsknit

amitcsknit

11-09-2020

Thanks all. my problem is solved. I had to parse XML for getting data as suggested by members. For attachments, I have used MultipartHttpServletRequest.

Avatar

Avatar

GirishBedekar

Avatar

GirishBedekar

GirishBedekar

08-09-2020

What is the error 

is your external end point running in tomcat server?

are you able to submit attachments to your external end point using postman?

Avatar

Avatar

GirishBedekar

Avatar

GirishBedekar

GirishBedekar

07-09-2020

Avatar

Avatar

Mayank_Gandhi

Employee

Avatar

Mayank_Gandhi

Employee

Mayank_Gandhi
Employee

07-09-2020

@amitcsknit Yes, you will get the xml. This document will help you understand bound and unbound data

https://docs.adobe.com/content/help/en/experience-manager-64/forms/adaptive-forms-advanced-authoring...