I have created a REST
service which is working fine with GET
method.
I want to post form data in JSON
format with POST
method. I have a ready form in MAF
and a REST
service which is working with GET
.
How can I connect both using REST/JSON
Service.
Convert your inputted data to your
POJO
object (the same you use to perform yourGET
) and then convert thePOJO
back to JSON and perform aPOST
.An example can be found here: Please click this link.