Attached is the package which shows how to receive the XML input as a POST REST request.
URL: http://localhost:5555/rest/RestUsingXML/test
Sample Data:
<?xml version="1.0"?>
<dataDoc>
<Name>Mahesh</Name>
<Addr>Sydney</Addr>
<Data>
<phone>0426 722 XXX</phone>
<email>maheshksreenivasulu@gmail.com</email>
</Data>
<Data>
<phone>0426 722 XXX</phone>
<email>maheshksreenivasulu@gmail.com</email>
</Data>
</dataDoc>
Any questions, leave your comments below:
RestUsingXML.zip (7.21 KB)