Hello Smathangi,
I have given a try with sample JSON message to convert to XML format by making use of built in services. Hope it helps
pub.json:jsonStringToDocument
pub.xml:documentToXMLString
JSON String:
{“employees”:[
{“firstName”:“John”, “lastName”:“Doe”},
{“firstName”:“Anna”, “lastName”:“Smith”},
{“firstName”:“Peter”,“lastName”:“Jones”}
]}
XML Output:
<?xml version="1.0"?>
John
Doe
Anna
Smith
Peter
Jones

#Flow-and-Java-services#webMethods#Integration-Server-and-ESB