SlideShare a Scribd company logo
Making flow Mule
SAMPLE OF CONFIGURATION FLOW AND BUILD APPLICATION WITH
ANYPOINTSTUDIO.
Through this example you will be ablo to:
1) Make the CXF web service
2) Custom Java Class
3) Configure the component AnyPointStudio for make a flow ESB
4) Build and Run Application with AnyPointStudio
5) Test Application with POSTMAN
Application City Report
Our application will be able to provide or hide the statistics of people for
regions:
1/1 Make the CXF web service: Flow
For the create a CXF web service you can consumer and configure the following component:
The web service will be able to provide the informationabout the popolutionof a specify city. The
value of population will show if the parameter «people» http request is Y else it will hide.Example:
http://localhost:8081/information?city=NAPOLI&people=Y
Naples - popolution: 30.000
http://localhost:8081/information?city=NAPOLI&people=Y
Rome - popolution: ******
1/2 Make the CXF web service: Configure HTTP Listen
For the create a CXF web service you can consumer and configure the
following component:
1/3 Make the CXF web service: CXF SOAP
For the create a CXF web service you can consumer and configure the
following component:
custom class
(interface)
1/4 Make the CXF web service: Java
For the create a CXF web service you can consumer and configure the
following component:
custom class
(business logic)
2/1 Custom Java
You will create the class java for implement business logic the web
service
1) Create a new package «bean» into your project
2) Create a new package «service» into your project
informationCityInterface
informationCity
cityBean
2/2 Custom Java: Bean «cityBean»
The bean <<cityBean>> is a simple pojo that will use for set and get
information about city and popolation.
package bean;
public class cityBean {
private String city;
private int people;
public cityBean() {
this.city = null;
this.people = 0;
}
public String getCity() {
return this.city;
}
public void setCity(String city) {
this.city = city;
}
public int getPeople() {
return this.people;
}
public void setPeople(int people) {
this.people = people;
}
}
2/3 Custom Java: Interface«informationCityInterface»
The class<<informationCityInterface>> is a class that will use for
consumer the component CXF
package service;
import javax.jws.WebMethod;
import javax.jws.WebService;
import bean.cityBean;
@WebService
public interface informationCityInterface {
@WebMethod
public cityBean getCity(String Country, String FlagPeople);
}
2/4 Custom Java: business logic «informationCity»
The class<<informationCity>> is a class that implement the business
logic:
package service;
import bean.cityBean;
public class informationCity implements informationCityInterface {
public informationCity() {
}
public cityBean getCity(String Country, String FlagPeople) {
cityBean beancity = new cityBean();
int people = 0;
String cit = Country;
switch (cit) {
case "NAPOLI":
people = 10000;
break;
case "ROMA":
people = 25000;
break;
default:
people = -1;
break;
}
beancity.setCity(cit);
beancity.setPeople(people);
return beancity;
}
}
3/1 Make the City Report: Flow
The City Report Flow will use for extract the information about city and number of popolution. If the
parameter popolution is Y on HTTP/request then the response will show the value of popolution else
won’t show the value.
SAMPLE
HTTP/Request: localhost:8081/service?city=Rome&popolution=Y
HTTP/Response: Naples - Number: 30.000
HTTP/Request: localhost:8081/service?city=Rome&popolution=N
HTTP/Response: Naples – Number: hide
3/2 Make the Flow City Report: Configure HTTP Listen
The HTTP Listener Connector provides the most practical way to listen
for HTTP requests. In this case the application listen on host “localhost”
and port “8081”
3/3 Make the Flow City Report: Set Variable
Use a variable transformer to set or remove a variable on the message. The scope of this variable is limited to the flow where it is set; when the
message leaves the flow, the variable does not carry over to the next flow or application.
3/4 Make the Flow City Report: Transform Message
Transformers convert message
payloads to formats expected by their
destinations.
In this case convert message payloads
to XML (output the web service)
3/5 Make the Flow City Report: Web Service Consumer
Web Service Consumer is a component Mule used to connect a specific service provider
3/6 Make the Flow City Report: XML To Pojo
You can use an XML-to-Pojo
transformer to transform XML
data to a Java Object
In this case we’re transforming the response of WS (XML) to java Object «cityBean»
3/7 Make the Flow City Report: Choice
The component “Choice” evaluates a
message against specified criteria, then
sends it to the first message processor
that matches those criteria.
We can use the “choice” for set payload
against parameters people
3/8 Make the Flow City Report: Set Payload
If the parameter “people” is Y else we configure the set payload
like show the following …
… else
3/9 Make the Flow City Report: Logger
Use the Logger to log
messages such as error
messages, status
notifications, or exceptions.
4/1 Build and run Application: run configuration
Create a new run configuration and choiche your
project:
4/2 Build and run Application: Run
Click onRun
click
If status is «Deployed» then you can ready for the test
your application!
4/3 Build and run Application: Test Application
For the test you can use «postman». It is an extension of google chrome used for create and send requests HTTP.
Example with parameters city = NAPOLI and people = Y
Example with parameters city = NAPOLI and people = N

More Related Content

What's hot

Mule execution
Mule executionMule execution
Mule execution
Praneethchampion
 
Mule ESB
Mule ESBMule ESB
Mule ESB
Rajkattamuri
 
Introduction to mule esb's
Introduction to mule esb's Introduction to mule esb's
Introduction to mule esb's
F K
 
Anypoint connector dev kit
Anypoint connector dev kitAnypoint connector dev kit
Anypoint connector dev kit
Son Nguyen
 
ESB introduction using Mule
ESB introduction using MuleESB introduction using Mule
ESB introduction using Mule
Khasim Cise
 
Mule ESB
Mule ESBMule ESB
Mule ESBniravn
 
MuleEsb Complete integration and middleware solution
MuleEsb Complete integration and middleware solutionMuleEsb Complete integration and middleware solution
MuleEsb Complete integration and middleware solution
Rajkattamuri
 
Mule message structure
Mule message structureMule message structure
Mule message structure
Srilatha Kante
 
Mule OAuth 2 Provider module
Mule OAuth 2 Provider moduleMule OAuth 2 Provider module
Mule OAuth 2 Provider module
Ankush Sharma
 
Mule concepts components
Mule concepts componentsMule concepts components
Mule concepts components
kunal vishe
 
Enterprise resources and mule
Enterprise resources and muleEnterprise resources and mule
Enterprise resources and mule
D.Rajesh Kumar
 
Service oriented online architecture using mule
Service oriented online architecture using muleService oriented online architecture using mule
Service oriented online architecture using mule
mdfkhan625
 
Mulesoft Anypoint platform introduction
Mulesoft Anypoint platform introductionMulesoft Anypoint platform introduction
Mulesoft Anypoint platform introduction
gijish
 
SOAP Service in Mule Esb
SOAP Service in Mule EsbSOAP Service in Mule Esb
SOAP Service in Mule Esb
Anand kalla
 
Mule soa
Mule soaMule soa
Mule soa
D.Rajesh Kumar
 
Basics of mule for beginners
Basics of mule for beginnersBasics of mule for beginners
Basics of mule for beginners
Sindhu VL
 
Mule Concur Connector
Mule Concur ConnectorMule Concur Connector
Mule Concur Connector
Ankush Sharma
 
Mule Microsoft Dynamics AX 2012 Connector
Mule Microsoft Dynamics AX 2012 ConnectorMule Microsoft Dynamics AX 2012 Connector
Mule Microsoft Dynamics AX 2012 Connector
Ankush Sharma
 

What's hot (18)

Mule execution
Mule executionMule execution
Mule execution
 
Mule ESB
Mule ESBMule ESB
Mule ESB
 
Introduction to mule esb's
Introduction to mule esb's Introduction to mule esb's
Introduction to mule esb's
 
Anypoint connector dev kit
Anypoint connector dev kitAnypoint connector dev kit
Anypoint connector dev kit
 
ESB introduction using Mule
ESB introduction using MuleESB introduction using Mule
ESB introduction using Mule
 
Mule ESB
Mule ESBMule ESB
Mule ESB
 
MuleEsb Complete integration and middleware solution
MuleEsb Complete integration and middleware solutionMuleEsb Complete integration and middleware solution
MuleEsb Complete integration and middleware solution
 
Mule message structure
Mule message structureMule message structure
Mule message structure
 
Mule OAuth 2 Provider module
Mule OAuth 2 Provider moduleMule OAuth 2 Provider module
Mule OAuth 2 Provider module
 
Mule concepts components
Mule concepts componentsMule concepts components
Mule concepts components
 
Enterprise resources and mule
Enterprise resources and muleEnterprise resources and mule
Enterprise resources and mule
 
Service oriented online architecture using mule
Service oriented online architecture using muleService oriented online architecture using mule
Service oriented online architecture using mule
 
Mulesoft Anypoint platform introduction
Mulesoft Anypoint platform introductionMulesoft Anypoint platform introduction
Mulesoft Anypoint platform introduction
 
SOAP Service in Mule Esb
SOAP Service in Mule EsbSOAP Service in Mule Esb
SOAP Service in Mule Esb
 
Mule soa
Mule soaMule soa
Mule soa
 
Basics of mule for beginners
Basics of mule for beginnersBasics of mule for beginners
Basics of mule for beginners
 
Mule Concur Connector
Mule Concur ConnectorMule Concur Connector
Mule Concur Connector
 
Mule Microsoft Dynamics AX 2012 Connector
Mule Microsoft Dynamics AX 2012 ConnectorMule Microsoft Dynamics AX 2012 Connector
Mule Microsoft Dynamics AX 2012 Connector
 

Viewers also liked

Cinemática. Elementos de un movimiento
Cinemática. Elementos de un movimientoCinemática. Elementos de un movimiento
Cinemática. Elementos de un movimiento
ColgandoClases ...
 
PACIFIC WALRUS UNDER SIEGE
PACIFIC WALRUS UNDER SIEGEPACIFIC WALRUS UNDER SIEGE
PACIFIC WALRUS UNDER SIEGEMitch Weintraub
 
Actividad vespertinas
Actividad vespertinasActividad vespertinas
Actividad vespertinas
Alberto Arturo Castillo Jesús
 
Sistema de alcantarillado
Sistema de alcantarilladoSistema de alcantarillado
Sistema de alcantarillado
UNAD
 
Segredos para ganhar com startups Inovadoras - carlosdiamante
Segredos para ganhar com startups Inovadoras - carlosdiamanteSegredos para ganhar com startups Inovadoras - carlosdiamante
Segredos para ganhar com startups Inovadoras - carlosdiamante
Carlos José Francisco
 
Whinstone Alvarado
Whinstone AlvaradoWhinstone Alvarado
Whinstone Alvarado
Whinstone Primera
 
Internet de las cosas
Internet de las cosasInternet de las cosas
Internet de las cosas
gabrielalachira
 
Audrey Arnold resume 2
Audrey Arnold resume 2Audrey Arnold resume 2
Audrey Arnold resume 2Audrey Arnold
 
The Edge: Week of October 3, 2011
The Edge: Week of October 3, 2011The Edge: Week of October 3, 2011
The Edge: Week of October 3, 2011
Houston Association of REALTORS®
 
методология 4 х шагов шнайдер брошюра eco struxure
методология 4 х шагов шнайдер брошюра eco struxureметодология 4 х шагов шнайдер брошюра eco struxure
методология 4 х шагов шнайдер брошюра eco struxureEcolife Journal
 
. MBA in Malaysia With Less Fees
.    MBA in Malaysia With Less Fees.    MBA in Malaysia With Less Fees
. MBA in Malaysia With Less Fees
DAsia India
 
Certificate IHG - Employee of the year
Certificate IHG - Employee of the yearCertificate IHG - Employee of the year
Certificate IHG - Employee of the yearKavita Gulrajani
 
Presentacion mascotas
Presentacion mascotasPresentacion mascotas
Presentacion mascotas
Yvonne Blajean Bent
 

Viewers also liked (20)

Cinemática. Elementos de un movimiento
Cinemática. Elementos de un movimientoCinemática. Elementos de un movimiento
Cinemática. Elementos de un movimiento
 
Tsinghwa
TsinghwaTsinghwa
Tsinghwa
 
3
33
3
 
PACIFIC WALRUS UNDER SIEGE
PACIFIC WALRUS UNDER SIEGEPACIFIC WALRUS UNDER SIEGE
PACIFIC WALRUS UNDER SIEGE
 
Actividad vespertinas
Actividad vespertinasActividad vespertinas
Actividad vespertinas
 
1
11
1
 
Edge032612
Edge032612Edge032612
Edge032612
 
Sistema de alcantarillado
Sistema de alcantarilladoSistema de alcantarillado
Sistema de alcantarillado
 
Segredos para ganhar com startups Inovadoras - carlosdiamante
Segredos para ganhar com startups Inovadoras - carlosdiamanteSegredos para ganhar com startups Inovadoras - carlosdiamante
Segredos para ganhar com startups Inovadoras - carlosdiamante
 
Whinstone Alvarado
Whinstone AlvaradoWhinstone Alvarado
Whinstone Alvarado
 
Internet de las cosas
Internet de las cosasInternet de las cosas
Internet de las cosas
 
Audrey Arnold resume 2
Audrey Arnold resume 2Audrey Arnold resume 2
Audrey Arnold resume 2
 
The Edge: Week of October 3, 2011
The Edge: Week of October 3, 2011The Edge: Week of October 3, 2011
The Edge: Week of October 3, 2011
 
mrisley resume 2015
mrisley resume 2015mrisley resume 2015
mrisley resume 2015
 
методология 4 х шагов шнайдер брошюра eco struxure
методология 4 х шагов шнайдер брошюра eco struxureметодология 4 х шагов шнайдер брошюра eco struxure
методология 4 х шагов шнайдер брошюра eco struxure
 
4
44
4
 
. MBA in Malaysia With Less Fees
.    MBA in Malaysia With Less Fees.    MBA in Malaysia With Less Fees
. MBA in Malaysia With Less Fees
 
Certificate IHG - Employee of the year
Certificate IHG - Employee of the yearCertificate IHG - Employee of the year
Certificate IHG - Employee of the year
 
2
22
2
 
Presentacion mascotas
Presentacion mascotasPresentacion mascotas
Presentacion mascotas
 

Similar to Making flow Mule

Mule soft ppt 2
Mule soft ppt  2Mule soft ppt  2
Mule soft ppt 2
Vinoth Moorthy
 
maXbox Starter 40 REST API Coding
maXbox Starter 40 REST API CodingmaXbox Starter 40 REST API Coding
maXbox Starter 40 REST API Coding
Max Kleiner
 
Webservices
WebservicesWebservices
Webservices
Nyros Technologies
 
CITYSEARCH
CITYSEARCHCITYSEARCH
CITYSEARCH
Giuseppe Fiore
 
How to – wrap soap web service around a database
How to – wrap soap web service around a databaseHow to – wrap soap web service around a database
How to – wrap soap web service around a database
Son Nguyen
 
Interoperable Web Services with JAX-WS and WSIT
Interoperable Web Services with JAX-WS and WSITInteroperable Web Services with JAX-WS and WSIT
Interoperable Web Services with JAX-WS and WSIT
Carol McDonald
 
Web Services
Web ServicesWeb Services
Web Services
F K
 
Web service invocation in mule
Web service invocation in muleWeb service invocation in mule
Web service invocation in mule
Krishnakanth Goud
 
Building Boston Rail - An Alexa Skill
Building Boston Rail - An Alexa SkillBuilding Boston Rail - An Alexa Skill
Building Boston Rail - An Alexa SkillCharles J Christina
 
ApacheCon NA 2010 - Building Apps with Apache Tuscany
ApacheCon NA 2010 - Building Apps with Apache TuscanyApacheCon NA 2010 - Building Apps with Apache Tuscany
ApacheCon NA 2010 - Building Apps with Apache TuscanyJean-Sebastien Delfino
 
Windows phone 7 series
Windows phone 7 seriesWindows phone 7 series
Windows phone 7 seriesopenbala
 
Xamarin Workshop Noob to Master – Week 5
Xamarin Workshop Noob to Master – Week 5Xamarin Workshop Noob to Master – Week 5
Xamarin Workshop Noob to Master – Week 5
Charlin Agramonte
 
Barbara Nelson [InfluxData] | How Can I Put That Dashboard in My App? | Influ...
Barbara Nelson [InfluxData] | How Can I Put That Dashboard in My App? | Influ...Barbara Nelson [InfluxData] | How Can I Put That Dashboard in My App? | Influ...
Barbara Nelson [InfluxData] | How Can I Put That Dashboard in My App? | Influ...
InfluxData
 
jkljklj
jkljkljjkljklj
jkljklj
hoefo
 
Service Oriented Architecture
Service Oriented ArchitectureService Oriented Architecture
Service Oriented ArchitectureLuqman Shareef
 
Application integration framework & Adaptor ppt
Application integration framework & Adaptor pptApplication integration framework & Adaptor ppt
Application integration framework & Adaptor ppt
Aditya Negi
 
Mule getting started
Mule getting startedMule getting started
Mule getting started
Karim Ezzine
 

Similar to Making flow Mule (20)

Mule soft ppt 2
Mule soft ppt  2Mule soft ppt  2
Mule soft ppt 2
 
maXbox Starter 40 REST API Coding
maXbox Starter 40 REST API CodingmaXbox Starter 40 REST API Coding
maXbox Starter 40 REST API Coding
 
Webservices
WebservicesWebservices
Webservices
 
CITYSEARCH
CITYSEARCHCITYSEARCH
CITYSEARCH
 
How to – wrap soap web service around a database
How to – wrap soap web service around a databaseHow to – wrap soap web service around a database
How to – wrap soap web service around a database
 
Interoperable Web Services with JAX-WS and WSIT
Interoperable Web Services with JAX-WS and WSITInteroperable Web Services with JAX-WS and WSIT
Interoperable Web Services with JAX-WS and WSIT
 
Web Services
Web ServicesWeb Services
Web Services
 
Web service invocation in mule
Web service invocation in muleWeb service invocation in mule
Web service invocation in mule
 
Building Boston Rail - An Alexa Skill
Building Boston Rail - An Alexa SkillBuilding Boston Rail - An Alexa Skill
Building Boston Rail - An Alexa Skill
 
ApacheCon NA 2010 - Building Apps with Apache Tuscany
ApacheCon NA 2010 - Building Apps with Apache TuscanyApacheCon NA 2010 - Building Apps with Apache Tuscany
ApacheCon NA 2010 - Building Apps with Apache Tuscany
 
Corespring
CorespringCorespring
Corespring
 
Corespring
CorespringCorespring
Corespring
 
Windows phone 7 series
Windows phone 7 seriesWindows phone 7 series
Windows phone 7 series
 
Xamarin Workshop Noob to Master – Week 5
Xamarin Workshop Noob to Master – Week 5Xamarin Workshop Noob to Master – Week 5
Xamarin Workshop Noob to Master – Week 5
 
Barbara Nelson [InfluxData] | How Can I Put That Dashboard in My App? | Influ...
Barbara Nelson [InfluxData] | How Can I Put That Dashboard in My App? | Influ...Barbara Nelson [InfluxData] | How Can I Put That Dashboard in My App? | Influ...
Barbara Nelson [InfluxData] | How Can I Put That Dashboard in My App? | Influ...
 
jkljklj
jkljkljjkljklj
jkljklj
 
Service Oriented Architecture
Service Oriented ArchitectureService Oriented Architecture
Service Oriented Architecture
 
Colloquium Report
Colloquium ReportColloquium Report
Colloquium Report
 
Application integration framework & Adaptor ppt
Application integration framework & Adaptor pptApplication integration framework & Adaptor ppt
Application integration framework & Adaptor ppt
 
Mule getting started
Mule getting startedMule getting started
Mule getting started
 

Recently uploaded

Understanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSageUnderstanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSage
Globus
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Globus
 
First Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User EndpointsFirst Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User Endpoints
Globus
 
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERRORTROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
Tier1 app
 
2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx
Georgi Kodinov
 
Cyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdfCyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdf
Cyanic lab
 
Lecture 1 Introduction to games development
Lecture 1 Introduction to games developmentLecture 1 Introduction to games development
Lecture 1 Introduction to games development
abdulrafaychaudhry
 
Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfInto the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdf
Ortus Solutions, Corp
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
Globus
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Globus
 
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteAI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
Google
 
Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604
Fermin Galan
 
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
Juraj Vysvader
 
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.ILBeyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Natan Silnitsky
 
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus
 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
Adele Miller
 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
XfilesPro
 
How Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptxHow Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptx
wottaspaceseo
 
Using IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New ZealandUsing IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New Zealand
IES VE
 
GlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote sessionGlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote session
Globus
 

Recently uploaded (20)

Understanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSageUnderstanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSage
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
 
First Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User EndpointsFirst Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User Endpoints
 
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERRORTROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
 
2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx
 
Cyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdfCyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdf
 
Lecture 1 Introduction to games development
Lecture 1 Introduction to games developmentLecture 1 Introduction to games development
Lecture 1 Introduction to games development
 
Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfInto the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdf
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
 
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteAI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
 
Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604
 
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
 
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.ILBeyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
 
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024
 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
 
How Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptxHow Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptx
 
Using IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New ZealandUsing IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New Zealand
 
GlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote sessionGlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote session
 

Making flow Mule

  • 1. Making flow Mule SAMPLE OF CONFIGURATION FLOW AND BUILD APPLICATION WITH ANYPOINTSTUDIO.
  • 2. Through this example you will be ablo to: 1) Make the CXF web service 2) Custom Java Class 3) Configure the component AnyPointStudio for make a flow ESB 4) Build and Run Application with AnyPointStudio 5) Test Application with POSTMAN
  • 3. Application City Report Our application will be able to provide or hide the statistics of people for regions:
  • 4. 1/1 Make the CXF web service: Flow For the create a CXF web service you can consumer and configure the following component: The web service will be able to provide the informationabout the popolutionof a specify city. The value of population will show if the parameter «people» http request is Y else it will hide.Example: http://localhost:8081/information?city=NAPOLI&people=Y Naples - popolution: 30.000 http://localhost:8081/information?city=NAPOLI&people=Y Rome - popolution: ******
  • 5. 1/2 Make the CXF web service: Configure HTTP Listen For the create a CXF web service you can consumer and configure the following component:
  • 6. 1/3 Make the CXF web service: CXF SOAP For the create a CXF web service you can consumer and configure the following component: custom class (interface)
  • 7. 1/4 Make the CXF web service: Java For the create a CXF web service you can consumer and configure the following component: custom class (business logic)
  • 8. 2/1 Custom Java You will create the class java for implement business logic the web service 1) Create a new package «bean» into your project 2) Create a new package «service» into your project informationCityInterface informationCity cityBean
  • 9. 2/2 Custom Java: Bean «cityBean» The bean <<cityBean>> is a simple pojo that will use for set and get information about city and popolation. package bean; public class cityBean { private String city; private int people; public cityBean() { this.city = null; this.people = 0; } public String getCity() { return this.city; } public void setCity(String city) { this.city = city; } public int getPeople() { return this.people; } public void setPeople(int people) { this.people = people; } }
  • 10. 2/3 Custom Java: Interface«informationCityInterface» The class<<informationCityInterface>> is a class that will use for consumer the component CXF package service; import javax.jws.WebMethod; import javax.jws.WebService; import bean.cityBean; @WebService public interface informationCityInterface { @WebMethod public cityBean getCity(String Country, String FlagPeople); }
  • 11. 2/4 Custom Java: business logic «informationCity» The class<<informationCity>> is a class that implement the business logic: package service; import bean.cityBean; public class informationCity implements informationCityInterface { public informationCity() { } public cityBean getCity(String Country, String FlagPeople) { cityBean beancity = new cityBean(); int people = 0; String cit = Country; switch (cit) { case "NAPOLI": people = 10000; break; case "ROMA": people = 25000; break; default: people = -1; break; } beancity.setCity(cit); beancity.setPeople(people); return beancity; } }
  • 12. 3/1 Make the City Report: Flow The City Report Flow will use for extract the information about city and number of popolution. If the parameter popolution is Y on HTTP/request then the response will show the value of popolution else won’t show the value. SAMPLE HTTP/Request: localhost:8081/service?city=Rome&popolution=Y HTTP/Response: Naples - Number: 30.000 HTTP/Request: localhost:8081/service?city=Rome&popolution=N HTTP/Response: Naples – Number: hide
  • 13. 3/2 Make the Flow City Report: Configure HTTP Listen The HTTP Listener Connector provides the most practical way to listen for HTTP requests. In this case the application listen on host “localhost” and port “8081”
  • 14. 3/3 Make the Flow City Report: Set Variable Use a variable transformer to set or remove a variable on the message. The scope of this variable is limited to the flow where it is set; when the message leaves the flow, the variable does not carry over to the next flow or application.
  • 15. 3/4 Make the Flow City Report: Transform Message Transformers convert message payloads to formats expected by their destinations. In this case convert message payloads to XML (output the web service)
  • 16. 3/5 Make the Flow City Report: Web Service Consumer Web Service Consumer is a component Mule used to connect a specific service provider
  • 17. 3/6 Make the Flow City Report: XML To Pojo You can use an XML-to-Pojo transformer to transform XML data to a Java Object In this case we’re transforming the response of WS (XML) to java Object «cityBean»
  • 18. 3/7 Make the Flow City Report: Choice The component “Choice” evaluates a message against specified criteria, then sends it to the first message processor that matches those criteria. We can use the “choice” for set payload against parameters people
  • 19. 3/8 Make the Flow City Report: Set Payload If the parameter “people” is Y else we configure the set payload like show the following … … else
  • 20. 3/9 Make the Flow City Report: Logger Use the Logger to log messages such as error messages, status notifications, or exceptions.
  • 21. 4/1 Build and run Application: run configuration Create a new run configuration and choiche your project:
  • 22. 4/2 Build and run Application: Run Click onRun click If status is «Deployed» then you can ready for the test your application!
  • 23. 4/3 Build and run Application: Test Application For the test you can use «postman». It is an extension of google chrome used for create and send requests HTTP. Example with parameters city = NAPOLI and people = Y Example with parameters city = NAPOLI and people = N