SlideShare a Scribd company logo
Mule ESB
How to convert from Json to Xml in 5 minutes
Gennaro Spagnoli - 2016
Gennaro Spagnoli - 2016
In this tutorial we will be creating an easy json to xml converter using mule esb.
Let’s begin creating a simple flow with an http listener, in order to get some json sdata from
some external source:
Gennaro Spagnoli - 2016
Now we can put our Xml to Json transformer in order to get the transformation:
For now, no further configuration is required for the component.
Let’s add the usual Logger component to show the transformation done on the console:
Gennaro Spagnoli - 2016
It’s time to start the server and get ready to test the application by calling the flow.
To do this, we will use postman as the http client, to create the request and get the response.
Configure it like this:
Gennaro Spagnoli - 2016
Let’s now press Β«sendΒ» and see the result:
Fantastic!
As a last check let’s go on the console and see what it has produced:
[[db_test].HTTP_Listener_Configuration.worker.0
1]
org.mule.api.processor.LoggerMessageProcessor:
<?xml
version='1.0'?><root><user><nome>Gennaro</nome>
<cognome>Spagnoli</cognome></user><user><nome>G
onzalo</nome><cognome>Higuain</cognome></user><
/root>

More Related Content

PPTX
Mule esb - How to use Idempotent Filters in 5 minutes
PPTX
Mule ESB - How to convert from Xml to Json in 5 minutes
PPTX
Deploying and running mule standalone
PPTX
Timer Interceptor in Mule
PPTX
Initialize database in Mule part2
PPTX
Deploying and Running in Mule
PPTX
Getting anypoint studios all versions
ODP
Example mule
Mule esb - How to use Idempotent Filters in 5 minutes
Mule ESB - How to convert from Xml to Json in 5 minutes
Deploying and running mule standalone
Timer Interceptor in Mule
Initialize database in Mule part2
Deploying and Running in Mule
Getting anypoint studios all versions
Example mule

What's hot (16)

PPTX
Accessing jms in mule using groovy
PPTX
Spicing your mule response
PPTX
Mule message enricher
PPTX
Running mule from java
PPTX
Groovy with Mule
PPTX
Mule esb soap_service
PPTX
Mule esb - How to make CRUD operations to a MySql Database in 5 minutes
PPTX
Idempotent filter in Mule
Β 
PPTX
Scheduling and monitoring with java in mule
PPTX
Composite source in bound and out-bound
PPTX
Groovy example in mule
PPTX
Running mule standalone
PPTX
Groovy in Mule
PPTX
Mule quartz
PPTX
Using ajax in mule
PPTX
Accessing Mule variables in groovy
Accessing jms in mule using groovy
Spicing your mule response
Mule message enricher
Running mule from java
Groovy with Mule
Mule esb soap_service
Mule esb - How to make CRUD operations to a MySql Database in 5 minutes
Idempotent filter in Mule
Β 
Scheduling and monitoring with java in mule
Composite source in bound and out-bound
Groovy example in mule
Running mule standalone
Groovy in Mule
Mule quartz
Using ajax in mule
Accessing Mule variables in groovy
Ad

Similar to Mule esb How to convert from Json to Xml in 5 minutes (20)

PPTX
Converting with custom transformer part 2
PPTX
Json to xml esb transformation
PPTX
Mule esb - How to convert from Json to Object in 5 minutes
PPTX
Mule esb json_to_object
PPTX
Mule esb How to convert from Object to Json in 5 minutes
PPTX
Converting with custom transformer
PPTX
Converting with custom transformer
PPTX
Converting with custom transformer
PPTX
Converting with custom transformer
PPTX
Transforming with custom transformer in mule
PPTX
Converting with custom transformer
Β 
PPTX
Converting with custom transformer
PPTX
Converting with custom transformer
PPTX
Converting with custom transforme
PPTX
Converting with custom transformer
PPTX
Converting with custom transformer
PPTX
Mule esb object_to_json
PPTX
Muleesbobjecttojson
PPTX
Xml toobjectesbtransform
PPTX
Mule esb object_to_json
Converting with custom transformer part 2
Json to xml esb transformation
Mule esb - How to convert from Json to Object in 5 minutes
Mule esb json_to_object
Mule esb How to convert from Object to Json in 5 minutes
Converting with custom transformer
Converting with custom transformer
Converting with custom transformer
Converting with custom transformer
Transforming with custom transformer in mule
Converting with custom transformer
Β 
Converting with custom transformer
Converting with custom transformer
Converting with custom transforme
Converting with custom transformer
Converting with custom transformer
Mule esb object_to_json
Muleesbobjecttojson
Xml toobjectesbtransform
Mule esb object_to_json
Ad

Recently uploaded (20)

PPTX
Funds Management Learning Material for Beg
PPTX
Job_Card_System_Styled_lorem_ipsum_.pptx
PDF
APNIC Update, presented at PHNOG 2025 by Shane Hermoso
Β 
PDF
An introduction to the IFRS (ISSB) Stndards.pdf
PDF
Cloud-Scale Log Monitoring _ Datadog.pdf
PDF
WebRTC in SignalWire - troubleshooting media negotiation
PPTX
Introduction about ICD -10 and ICD11 on 5.8.25.pptx
PPTX
PptxGenJS_Demo_Chart_20250317130215833.pptx
PPTX
Introuction about WHO-FIC in ICD-10.pptx
PPTX
Digital Literacy And Online Safety on internet
PDF
πŸ’° π”πŠπ“πˆ πŠπ„πŒπ„ππ€ππ†π€π πŠπˆππ„π‘πŸ’πƒ π‡π€π‘πˆ 𝐈𝐍𝐈 πŸπŸŽπŸπŸ“ πŸ’°
Β 
PPTX
CHE NAA, , b,mn,mblblblbljb jb jlb ,j , ,C PPT.pptx
PDF
Decoding a Decade: 10 Years of Applied CTI Discipline
PPTX
Slides PPTX World Game (s) Eco Economic Epochs.pptx
PPTX
SAP Ariba Sourcing PPT for learning material
PDF
Slides PDF The World Game (s) Eco Economic Epochs.pdf
PPTX
522797556-Unit-2-Temperature-measurement-1-1.pptx
PDF
Testing WebRTC applications at scale.pdf
PDF
RPKI Status Update, presented by Makito Lay at IDNOG 10
Β 
PPTX
innovation process that make everything different.pptx
Funds Management Learning Material for Beg
Job_Card_System_Styled_lorem_ipsum_.pptx
APNIC Update, presented at PHNOG 2025 by Shane Hermoso
Β 
An introduction to the IFRS (ISSB) Stndards.pdf
Cloud-Scale Log Monitoring _ Datadog.pdf
WebRTC in SignalWire - troubleshooting media negotiation
Introduction about ICD -10 and ICD11 on 5.8.25.pptx
PptxGenJS_Demo_Chart_20250317130215833.pptx
Introuction about WHO-FIC in ICD-10.pptx
Digital Literacy And Online Safety on internet
πŸ’° π”πŠπ“πˆ πŠπ„πŒπ„ππ€ππ†π€π πŠπˆππ„π‘πŸ’πƒ π‡π€π‘πˆ 𝐈𝐍𝐈 πŸπŸŽπŸπŸ“ πŸ’°
Β 
CHE NAA, , b,mn,mblblblbljb jb jlb ,j , ,C PPT.pptx
Decoding a Decade: 10 Years of Applied CTI Discipline
Slides PPTX World Game (s) Eco Economic Epochs.pptx
SAP Ariba Sourcing PPT for learning material
Slides PDF The World Game (s) Eco Economic Epochs.pdf
522797556-Unit-2-Temperature-measurement-1-1.pptx
Testing WebRTC applications at scale.pdf
RPKI Status Update, presented by Makito Lay at IDNOG 10
Β 
innovation process that make everything different.pptx

Mule esb How to convert from Json to Xml in 5 minutes

  • 1. Mule ESB How to convert from Json to Xml in 5 minutes Gennaro Spagnoli - 2016
  • 2. Gennaro Spagnoli - 2016 In this tutorial we will be creating an easy json to xml converter using mule esb. Let’s begin creating a simple flow with an http listener, in order to get some json sdata from some external source:
  • 3. Gennaro Spagnoli - 2016 Now we can put our Xml to Json transformer in order to get the transformation: For now, no further configuration is required for the component. Let’s add the usual Logger component to show the transformation done on the console:
  • 4. Gennaro Spagnoli - 2016 It’s time to start the server and get ready to test the application by calling the flow. To do this, we will use postman as the http client, to create the request and get the response. Configure it like this:
  • 5. Gennaro Spagnoli - 2016 Let’s now press Β«sendΒ» and see the result: Fantastic! As a last check let’s go on the console and see what it has produced: [[db_test].HTTP_Listener_Configuration.worker.0 1] org.mule.api.processor.LoggerMessageProcessor: <?xml version='1.0'?><root><user><nome>Gennaro</nome> <cognome>Spagnoli</cognome></user><user><nome>G onzalo</nome><cognome>Higuain</cognome></user>< /root>