aem forms submission to external end point | Adobe Higher Education
Skip to main content
amitcsknit
Level 2
September 4, 2020
解決済み

aem forms submission to external end point

  • September 4, 2020
  • 5 の返信
  • 1902 ビュー

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

このトピックへの返信は締め切られました。
ベストアンサー GirishBedekar

Yes that is correct

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

 

5 の返信

Level 8
September 4, 2020

Yes that is correct

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

 

amitcsknit
amitcsknit作成者
Level 2
September 7, 2020
thanks Girish for confirmation. But i am not able to get any attached document in tomcat deployed service which is accepting this form data. any suggestion?
Mayank_Gandhi
Adobe Employee
Adobe Employee
September 7, 2020
Level 8
September 7, 2020
amitcsknit
amitcsknit作成者
Level 2
September 9, 2020
tried all that but in external end point it gives error when i attach any document. i try to accept as MultipartFile file at client side.
Level 8
September 9, 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?

amitcsknit
amitcsknit作成者
Level 2
September 11, 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.