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

PPTX
Mule esb httpflow
PPTX
Input and output flow using file and logger component
PPTX
Input and output flow using http and java component
PPTX
Esb first http flow
PPTX
My mule esb first http flow
PPTX
Mule esb - How to use Idempotent Filters in 5 minutes
ODP
Example mule
PPTX
Mapping and listing with mule
Mule esb httpflow
Input and output flow using file and logger component
Input and output flow using http and java component
Esb first http flow
My mule esb first http flow
Mule esb - How to use Idempotent Filters in 5 minutes
Example mule
Mapping and listing with mule

Viewers also liked (18)

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

Similar to Mule esb lesson 1 (20)

PPTX
Mule esb first http connector
PPTX
Mule esb first http connector
PPTX
Simple interact between http and java components
PPTX
Mule hppt java
PPTX
Mule esb lesson 2
PDF
Mule 4 - Hello World
PDF
Mule ESB Interview or Certification questions
PDF
Top 50 MuleSoft interview questions
PPTX
Payload and logger
PPTX
First lesson
PPTX
Introduce anypoint studio
PPTX
Mule esb file to-string flow
PPTX
Mule esb lesson 3
PDF
Mule esb and_relevant_components
PPTX
Mule connectors-part 1
PPTX
Mule esb add logger to existing flow
PPTX
Configurare http mule
PPT
MuleSoft ESB Routes first-successful
PPTX
Mule esb
PPTX
Mule connectors-session1
Mule esb first http connector
Mule esb first http connector
Simple interact between http and java components
Mule hppt java
Mule esb lesson 2
Mule 4 - Hello World
Mule ESB Interview or Certification questions
Top 50 MuleSoft interview questions
Payload and logger
First lesson
Introduce anypoint studio
Mule esb file to-string flow
Mule esb lesson 3
Mule esb and_relevant_components
Mule connectors-part 1
Mule esb add logger to existing flow
Configurare http mule
MuleSoft ESB Routes first-successful
Mule esb
Mule connectors-session1
Ad

More from Germano Barba (9)

PPTX
Rest fullservices
PPTX
Transformation csvtoxml
PPTX
Transformation jsontojsonesb
PPTX
Transformation jsontoxmlesb
PPTX
Transformation xmltoobjectesb
PPTX
Xml to xml transformation in mule
PPTX
Mule esb using file to string and logger component
PPTX
Mule esb using file to string and logger component
PPTX
Mule io flow
Rest fullservices
Transformation csvtoxml
Transformation jsontojsonesb
Transformation jsontoxmlesb
Transformation xmltoobjectesb
Xml to xml transformation in mule
Mule esb using file to string and logger component
Mule esb using file to string and logger component
Mule io flow

Recently uploaded (20)

PDF
Five Habits of High-Impact Board Members
PDF
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
PDF
August Patch Tuesday
PDF
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
PPTX
O2C Customer Invoices to Receipt V15A.pptx
PDF
WOOl fibre morphology and structure.pdf for textiles
PDF
NewMind AI Weekly Chronicles – August ’25 Week III
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PDF
STKI Israel Market Study 2025 version august
PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
PPTX
The various Industrial Revolutions .pptx
PPT
Geologic Time for studying geology for geologist
PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PDF
Hybrid model detection and classification of lung cancer
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
CloudStack 4.21: First Look Webinar slides
PPTX
Benefits of Physical activity for teenagers.pptx
PDF
A contest of sentiment analysis: k-nearest neighbor versus neural network
PDF
Getting started with AI Agents and Multi-Agent Systems
PPTX
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
Five Habits of High-Impact Board Members
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
August Patch Tuesday
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
O2C Customer Invoices to Receipt V15A.pptx
WOOl fibre morphology and structure.pdf for textiles
NewMind AI Weekly Chronicles – August ’25 Week III
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
STKI Israel Market Study 2025 version august
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
The various Industrial Revolutions .pptx
Geologic Time for studying geology for geologist
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
Hybrid model detection and classification of lung cancer
Group 1 Presentation -Planning and Decision Making .pptx
CloudStack 4.21: First Look Webinar slides
Benefits of Physical activity for teenagers.pptx
A contest of sentiment analysis: k-nearest neighbor versus neural network
Getting started with AI Agents and Multi-Agent Systems
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx

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!