Rest Using XML - Code sample to receive XML as input in the REST service

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)

Hi Mahesh,

Great work on this, really helped…
Can you advise on the implementation as I can’t quite figure out how it works