SlideShare a Scribd company logo
How to use Parse Template
04-06-2015
Abstract
• The main motto of this PPT is How to use
Parse Template in our applications.
Introduction
• Use a parse template to load the content of a
flow-external file into a Mule flow, then use
the file as a template into which you can
insert data returned as the result of evaluated
Mule expressions.
Example
.mflow
• <?xml version="1.0" encoding="UTF-8"?>
• <mule xmlns:http="http://www.mulesoft.org/schema/mule/http"
xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
• xmlns:spring="http://www.springframework.org/schema/beans"
• xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
• xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-current.xsd
• http://www.mulesoft.org/schema/mule/core
http://www.mulesoft.org/schema/mule/core/current/mule.xsd
• http://www.mulesoft.org/schema/mule/http
http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd">
• <http:listener-config name="HTTP_Listener_Configuration" host="0.0.0.0" port="8089"
doc:name="HTTP Listener Configuration"/>
• <flow name="ParseTempletFlow">
• <http:listener config-ref="HTTP_Listener_Configuration" path="/*" doc:name="HTTP"/>
• <logger message="--Flow started--" level="INFO" doc:name="Logger"/>
• <parse-template location=“****srcmainresourcesmyfile.xml" doc:name="Parse
Template"/>
• </flow>
• </mule>
•
• Myfile.xml:
• <Name>#[message.inboundProperties.'http.q
uery.params'.name]</Name>
• <Age>#[message.inboundProperties.'http.que
ry.params'.age]</Age>
• Output:
• Flow of execution:
1. URL to trigger the service from browser
http://localhost:8089/parsetemplate?name=siva
&age=25
2. POC will read inbound parameters and update
the myfile.xml with above inbound parameters
and returns the final xml back to browser
References
• https://docs.mulesoft.com/mule-user-
guide/v/3.7/parse-template-reference

More Related Content

What's hot (19)

PPTX
Expression filter in Mule
Mohammed246
 
PPTX
Mule property placeholder
Sashidhar Rao GDS
 
PPTX
Using groovy component
Rahul Kumar
 
PPTX
Using XSLT in Mule
Anirban Sen Chowdhary
 
PPTX
How to use splitter component
RaviRajuRamaKrishna
 
PPTX
xslt in mule
Praneethchampion
 
ODP
Howtouseforeachcomponent
akshay yeluru
 
PPTX
How to use smtp endpoint
sivachandra mandalapu
 
PPTX
Until successful component in mule
javeed_mhd
 
PPTX
Xslt in mule
Mohammed246
 
PPTX
Mule esb
Khan625
 
PPTX
Filter expression in mule demo
Sudha Ch
 
PPTX
Wildcard Filter
sivachandra mandalapu
 
PPT
Mule introduction
Satya Sekhar Das Mandal
 
PPTX
Mule esb :Data Weave
AnilKumar Etagowni
 
PPTX
File component in mule
Rajkattamuri
 
PPTX
Filter expression in mule
Rajkattamuri
 
PPT
Mule security - spring security manager
D.Rajesh Kumar
 
PPTX
For each component in mule
Rajkattamuri
 
Expression filter in Mule
Mohammed246
 
Mule property placeholder
Sashidhar Rao GDS
 
Using groovy component
Rahul Kumar
 
Using XSLT in Mule
Anirban Sen Chowdhary
 
How to use splitter component
RaviRajuRamaKrishna
 
xslt in mule
Praneethchampion
 
Howtouseforeachcomponent
akshay yeluru
 
How to use smtp endpoint
sivachandra mandalapu
 
Until successful component in mule
javeed_mhd
 
Xslt in mule
Mohammed246
 
Mule esb
Khan625
 
Filter expression in mule demo
Sudha Ch
 
Wildcard Filter
sivachandra mandalapu
 
Mule introduction
Satya Sekhar Das Mandal
 
Mule esb :Data Weave
AnilKumar Etagowni
 
File component in mule
Rajkattamuri
 
Filter expression in mule
Rajkattamuri
 
Mule security - spring security manager
D.Rajesh Kumar
 
For each component in mule
Rajkattamuri
 

More from sivachandra mandalapu (20)

PPTX
Mock component in munit
sivachandra mandalapu
 
PPTX
Jms selector
sivachandra mandalapu
 
PPTX
Sftplite
sivachandra mandalapu
 
PPTX
Object store
sivachandra mandalapu
 
PPTX
How to use SFTP
sivachandra mandalapu
 
PPTX
How to use secure property placeholder
sivachandra mandalapu
 
PPTX
Specifying a default exception strategy
sivachandra mandalapu
 
PPTX
Defining global exception strategies
sivachandra mandalapu
 
PPTX
Reference exception strategy
sivachandra mandalapu
 
PPTX
Validate json schema
sivachandra mandalapu
 
PPTX
Validation
sivachandra mandalapu
 
PPTX
Property place holder
sivachandra mandalapu
 
PPTX
Collection aggregator
sivachandra mandalapu
 
PPTX
Cloud hub deployment
sivachandra mandalapu
 
PPTX
Securing api with_o_auth2
sivachandra mandalapu
 
PPTX
Deployment options for mule applications
sivachandra mandalapu
 
PPTX
Setting up organization with api access
sivachandra mandalapu
 
PPTX
API gateway setup
sivachandra mandalapu
 
PPTX
Splitter
sivachandra mandalapu
 
PPTX
Expression
sivachandra mandalapu
 
Mock component in munit
sivachandra mandalapu
 
Jms selector
sivachandra mandalapu
 
Object store
sivachandra mandalapu
 
How to use SFTP
sivachandra mandalapu
 
How to use secure property placeholder
sivachandra mandalapu
 
Specifying a default exception strategy
sivachandra mandalapu
 
Defining global exception strategies
sivachandra mandalapu
 
Reference exception strategy
sivachandra mandalapu
 
Validate json schema
sivachandra mandalapu
 
Property place holder
sivachandra mandalapu
 
Collection aggregator
sivachandra mandalapu
 
Cloud hub deployment
sivachandra mandalapu
 
Securing api with_o_auth2
sivachandra mandalapu
 
Deployment options for mule applications
sivachandra mandalapu
 
Setting up organization with api access
sivachandra mandalapu
 
API gateway setup
sivachandra mandalapu
 
Ad

Recently uploaded (20)

PDF
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
PDF
Android Programming - Basics of Mobile App, App tools and Android Basics
Kavitha P.V
 
PPTX
Controller Request and Response in Odoo18
Celine George
 
PDF
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
PPTX
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
PPTX
Introduction to Indian Writing in English
Trushali Dodiya
 
PPTX
Introduction to Biochemistry & Cellular Foundations.pptx
marvinnbustamante1
 
PPTX
How to Create a Customer From Website in Odoo 18.pptx
Celine George
 
PDF
Horarios de distribución de agua en julio
pegazohn1978
 
PDF
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
PPTX
Difference between write and update in odoo 18
Celine George
 
PPTX
Nitrogen rule, ring rule, mc lafferty.pptx
nbisen2001
 
PDF
IMPORTANT GUIDELINES FOR M.Sc.ZOOLOGY DISSERTATION
raviralanaresh2
 
PPTX
How to Create Odoo JS Dialog_Popup in Odoo 18
Celine George
 
PDF
epi editorial commitee meeting presentation
MIPLM
 
PPTX
How to Manage Allocation Report for Manufacturing Orders in Odoo 18
Celine George
 
PPTX
DAY 1_QUARTER1 ENGLISH 5 WEEK- PRESENTATION.pptx
BanyMacalintal
 
PDF
AI-Powered-Visual-Storytelling-for-Nonprofits.pdf
TechSoup
 
PDF
Mahidol_Change_Agent_Note_2025-06-27-29_MUSEF
Tassanee Lerksuthirat
 
PPTX
DIGITAL CITIZENSHIP TOPIC TLE 8 MATATAG CURRICULUM
ROBERTAUGUSTINEFRANC
 
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
Android Programming - Basics of Mobile App, App tools and Android Basics
Kavitha P.V
 
Controller Request and Response in Odoo18
Celine George
 
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
Introduction to Indian Writing in English
Trushali Dodiya
 
Introduction to Biochemistry & Cellular Foundations.pptx
marvinnbustamante1
 
How to Create a Customer From Website in Odoo 18.pptx
Celine George
 
Horarios de distribución de agua en julio
pegazohn1978
 
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
Difference between write and update in odoo 18
Celine George
 
Nitrogen rule, ring rule, mc lafferty.pptx
nbisen2001
 
IMPORTANT GUIDELINES FOR M.Sc.ZOOLOGY DISSERTATION
raviralanaresh2
 
How to Create Odoo JS Dialog_Popup in Odoo 18
Celine George
 
epi editorial commitee meeting presentation
MIPLM
 
How to Manage Allocation Report for Manufacturing Orders in Odoo 18
Celine George
 
DAY 1_QUARTER1 ENGLISH 5 WEEK- PRESENTATION.pptx
BanyMacalintal
 
AI-Powered-Visual-Storytelling-for-Nonprofits.pdf
TechSoup
 
Mahidol_Change_Agent_Note_2025-06-27-29_MUSEF
Tassanee Lerksuthirat
 
DIGITAL CITIZENSHIP TOPIC TLE 8 MATATAG CURRICULUM
ROBERTAUGUSTINEFRANC
 
Ad

How to use parse template

  • 1. How to use Parse Template 04-06-2015
  • 2. Abstract • The main motto of this PPT is How to use Parse Template in our applications.
  • 3. Introduction • Use a parse template to load the content of a flow-external file into a Mule flow, then use the file as a template into which you can insert data returned as the result of evaluated Mule expressions.
  • 5. .mflow • <?xml version="1.0" encoding="UTF-8"?> • <mule xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" • xmlns:spring="http://www.springframework.org/schema/beans" • xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" • xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd • http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd • http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd"> • <http:listener-config name="HTTP_Listener_Configuration" host="0.0.0.0" port="8089" doc:name="HTTP Listener Configuration"/> • <flow name="ParseTempletFlow"> • <http:listener config-ref="HTTP_Listener_Configuration" path="/*" doc:name="HTTP"/> • <logger message="--Flow started--" level="INFO" doc:name="Logger"/> • <parse-template location=“****srcmainresourcesmyfile.xml" doc:name="Parse Template"/> • </flow> • </mule> •
  • 6. • Myfile.xml: • <Name>#[message.inboundProperties.'http.q uery.params'.name]</Name> • <Age>#[message.inboundProperties.'http.que ry.params'.age]</Age>
  • 8. • Flow of execution: 1. URL to trigger the service from browser http://localhost:8089/parsetemplate?name=siva &age=25 2. POC will read inbound parameters and update the myfile.xml with above inbound parameters and returns the final xml back to browser