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

 View Only
Wed August 28, 2019 09:55 PM

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)


#REST
#xml
#wiki
#webMethods

Comments

Tue July 27, 2021 06:05 AM

Hi Mahesh,

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


#webMethods
#xml
#wiki
#REST