SlideShare a Scribd company logo
1 of 7
Mule ESB
LESSON 1 – HTTP FLOW
Open Anypoint Studio
Create a File  New  Mule Project
Click «Finish»
Expand the «myfirstproject» on package explorer
Double click on myfirstproject.xml
Once file is open, show Message Flow
From Mule Palette view, search for «HTTP» and select the first one.
Drag and Drop it into Message Flow view.
Now we have to configure listner for our HTTP flow
Double click on HTTP blue element
Below it will appear HTTP view
On the General Setting let’s create and choose an HTTP Listener
Click on Add (+) and configure:
Host: localhost
Port: 8081
On «Basic Settings» define web service:
Path: /myfirstFlow
Allow.Methods: GET
Click OK
Click on SAVE at top-left of screen
Now we have to configure process part
From Mule Palette view, search for «set» and select «Set Payload»
Drag and Drop it into our flow, under the Process block.
Double click on Set Payload green element
Below it will appear Set Payload view
On the Setting – Value configure the response to return to the caller of service
You can wrote whatever you want .
The sintax is:
# [‘ (what you want ) ‘]
Click on SAVE at top-left of screen
Now we can start our Mule server with the service created
Right Click on myfirstproject  Run As  Mule Application
On the Console view below server is going to start
At the end you will see the status DEPLOYED
**************************************************************
* myfirstproject * default * DEPLOYED *
**************************************************************
This means that server is up and running
From Web Browser (IE, Chrome, or what you want) let’s invoke our service endpoint:
http://localhost:8081/myfirstFlow
What we receive is the message that we defined in Set Payload, in my case is:
My First HTTP Service works !
Enjoy with Mule!

More Related Content

Viewers also liked

Performance Report - APA Technology Division (12)
Performance Report - APA Technology Division (12)Performance Report - APA Technology Division (12)
Performance Report - APA Technology Division (12)
Harsh Prakash (AWS, Azure, Security+, Agile, PMP, GISP)
 
GIS Growth Study for Charlottesville VA - 2000-2030 (PLAN 885) - VAMLIS
GIS Growth Study for Charlottesville VA - 2000-2030 (PLAN 885) - VAMLISGIS Growth Study for Charlottesville VA - 2000-2030 (PLAN 885) - VAMLIS
GIS Growth Study for Charlottesville VA - 2000-2030 (PLAN 885) - VAMLIS
Harsh Prakash (AWS, Azure, Security+, Agile, PMP, GISP)
 
Mule ESB Tutorial Part 2
Mule ESB Tutorial Part 2Mule ESB Tutorial Part 2
Mule ESB Tutorial Part 2
Srikanth N
 

Viewers also liked (18)

Tercer parcial
Tercer parcialTercer parcial
Tercer parcial
 
resumeS
resumeSresumeS
resumeS
 
Mule esb
Mule esb Mule esb
Mule esb
 
Mule real world old
Mule real world oldMule real world old
Mule real world old
 
Mule soap
Mule soapMule soap
Mule soap
 
どんなアプリ?でリジェクト
どんなアプリ?でリジェクトどんなアプリ?でリジェクト
どんなアプリ?でリジェクト
 
Plán práce Materskej školy Ševčenkova 35 na školský rok 2014/2015
Plán práce Materskej školy Ševčenkova 35 na školský rok 2014/2015Plán práce Materskej školy Ševčenkova 35 na školský rok 2014/2015
Plán práce Materskej školy Ševčenkova 35 na školský rok 2014/2015
 
Plán práce Materskej školy Ševčenkova 35 na školský rok 2013/2014
Plán práce Materskej školy Ševčenkova 35 na školský rok 2013/2014Plán práce Materskej školy Ševčenkova 35 na školský rok 2013/2014
Plán práce Materskej školy Ševčenkova 35 na školský rok 2013/2014
 
Performance Report - APA Technology Division (12)
Performance Report - APA Technology Division (12)Performance Report - APA Technology Division (12)
Performance Report - APA Technology Division (12)
 
GIS Growth Study for Charlottesville VA - 2000-2030 (PLAN 885) - VAMLIS
GIS Growth Study for Charlottesville VA - 2000-2030 (PLAN 885) - VAMLISGIS Growth Study for Charlottesville VA - 2000-2030 (PLAN 885) - VAMLIS
GIS Growth Study for Charlottesville VA - 2000-2030 (PLAN 885) - VAMLIS
 
Groovy with Mule
Groovy with MuleGroovy with Mule
Groovy with Mule
 
Anypoint b2 b
Anypoint b2 bAnypoint b2 b
Anypoint b2 b
 
ブランディングエンジニア資料
ブランディングエンジニア資料ブランディングエンジニア資料
ブランディングエンジニア資料
 
Telling the world why we love mule soft!
Telling the world why we love mule soft!Telling the world why we love mule soft!
Telling the world why we love mule soft!
 
Vm component in mule demo
Vm component in mule demoVm component in mule demo
Vm component in mule demo
 
Mule ESB Tutorial Part 2
Mule ESB Tutorial Part 2Mule ESB Tutorial Part 2
Mule ESB Tutorial Part 2
 
Fluentd and Kafka
Fluentd and KafkaFluentd and Kafka
Fluentd and Kafka
 
Fairfax County Parkway Corridor Study
Fairfax County Parkway Corridor StudyFairfax County Parkway Corridor Study
Fairfax County Parkway Corridor Study
 

Similar to Mule esb lesson 1

How to Transfer Magento Project from One Server to another Server
How to Transfer Magento Project from One Server to another ServerHow to Transfer Magento Project from One Server to another Server
How to Transfer Magento Project from One Server to another Server
Kaushal Mewar
 

Similar to Mule esb lesson 1 (20)

Mule esb first http connector
Mule esb first http connectorMule esb first http connector
Mule esb first http connector
 
Mule esb first http connector
Mule esb first http connectorMule esb first http connector
Mule esb first http connector
 
Simple interact between http and java components
Simple interact between http and java componentsSimple interact between http and java components
Simple interact between http and java components
 
Example esb file-to-string flow
Example esb file-to-string flowExample esb file-to-string flow
Example esb file-to-string flow
 
Mule hppt java
Mule hppt javaMule hppt java
Mule hppt java
 
Input and output flow using file to string and logger component
Input and output flow using file to string and logger componentInput and output flow using file to string and logger component
Input and output flow using file to string and logger component
 
Input and output flow with logger component
Input and output flow with logger componentInput and output flow with logger component
Input and output flow with logger component
 
Mule esb lesson 3
Mule esb   lesson 3Mule esb   lesson 3
Mule esb lesson 3
 
Mule esb file to-string flow
Mule esb file to-string flowMule esb file to-string flow
Mule esb file to-string flow
 
Payload and logger
Payload and loggerPayload and logger
Payload and logger
 
Installation of Joomla on Windows XP
Installation of Joomla on Windows XPInstallation of Joomla on Windows XP
Installation of Joomla on Windows XP
 
Mule esb using file to string and logger component
Mule esb using file to string and logger componentMule esb using file to string and logger component
Mule esb using file to string and logger component
 
Mule esb using file to string and logger component
Mule esb using file to string and logger componentMule esb using file to string and logger component
Mule esb using file to string and logger component
 
First lesson
First lessonFirst lesson
First lesson
 
Mule io flow
Mule io flowMule io flow
Mule io flow
 
How to Transfer Magento Project from One Server to another Server
How to Transfer Magento Project from One Server to another ServerHow to Transfer Magento Project from One Server to another Server
How to Transfer Magento Project from One Server to another Server
 
Oracle OSB Tutorial 1
Oracle OSB Tutorial 1Oracle OSB Tutorial 1
Oracle OSB Tutorial 1
 
Mule esb lesson 2
Mule esb   lesson 2Mule esb   lesson 2
Mule esb lesson 2
 
IMPACT/myGrid Hackathon - Introduction to Taverna
IMPACT/myGrid Hackathon - Introduction to TavernaIMPACT/myGrid Hackathon - Introduction to Taverna
IMPACT/myGrid Hackathon - Introduction to Taverna
 
Example esb flow
Example esb flowExample esb flow
Example esb flow
 

More from Germano Barba (7)

Rest fullservices
Rest fullservicesRest fullservices
Rest fullservices
 
Transformation csvtoxml
Transformation csvtoxmlTransformation csvtoxml
Transformation csvtoxml
 
Transformation jsontojsonesb
Transformation jsontojsonesbTransformation jsontojsonesb
Transformation jsontojsonesb
 
Transformation jsontoxmlesb
Transformation jsontoxmlesbTransformation jsontoxmlesb
Transformation jsontoxmlesb
 
Transformation xmltoobjectesb
Transformation xmltoobjectesbTransformation xmltoobjectesb
Transformation xmltoobjectesb
 
Xml to xml transformation in mule
Xml to xml transformation in muleXml to xml transformation in mule
Xml to xml transformation in mule
 
Mule esb add logger to existing flow
Mule esb add logger to existing flowMule esb add logger to existing flow
Mule esb add logger to existing flow
 

Recently uploaded

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

Recently uploaded (20)

MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Decarbonising Commercial Real Estate: The Role of Operational Performance
Decarbonising Commercial Real Estate: The Role of Operational PerformanceDecarbonising Commercial Real Estate: The Role of Operational Performance
Decarbonising Commercial Real Estate: The Role of Operational Performance
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptx
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Choreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software EngineeringChoreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software Engineering
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
 
Quantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation ComputingQuantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation Computing
 

Mule esb lesson 1

  • 1. Mule ESB LESSON 1 – HTTP FLOW
  • 2. Open Anypoint Studio Create a File  New  Mule Project Click «Finish»
  • 3. Expand the «myfirstproject» on package explorer Double click on myfirstproject.xml Once file is open, show Message Flow From Mule Palette view, search for «HTTP» and select the first one. Drag and Drop it into Message Flow view.
  • 4. Now we have to configure listner for our HTTP flow Double click on HTTP blue element Below it will appear HTTP view On the General Setting let’s create and choose an HTTP Listener Click on Add (+) and configure: Host: localhost Port: 8081 On «Basic Settings» define web service: Path: /myfirstFlow Allow.Methods: GET Click OK Click on SAVE at top-left of screen
  • 5. Now we have to configure process part From Mule Palette view, search for «set» and select «Set Payload» Drag and Drop it into our flow, under the Process block. Double click on Set Payload green element Below it will appear Set Payload view On the Setting – Value configure the response to return to the caller of service You can wrote whatever you want . The sintax is: # [‘ (what you want ) ‘] Click on SAVE at top-left of screen
  • 6. Now we can start our Mule server with the service created Right Click on myfirstproject  Run As  Mule Application On the Console view below server is going to start At the end you will see the status DEPLOYED ************************************************************** * myfirstproject * default * DEPLOYED * ************************************************************** This means that server is up and running
  • 7. From Web Browser (IE, Chrome, or what you want) let’s invoke our service endpoint: http://localhost:8081/myfirstFlow What we receive is the message that we defined in Set Payload, in my case is: My First HTTP Service works ! Enjoy with Mule!