webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only

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

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

Statistics
0 Favorited
0 Views
0 Files
0 Shares
0 Downloads

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