Tips, Tricks and Code Tips, Tricks and Code

Back

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

Created by Mahesh K. Sreenivasulu -, last modified on Fri, 30 Aug 2019, 09:08

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:


1 Attachment
139 Views
Average (0 Votes)
Comments