SlideShare a Scribd company logo
Implementing RESTful WebService
An ESB is expected to function as a service provider as well as a
consumer. This tutorial will explain how Mule ESB can be
configured to function as a RESTful WebService endpoint. Mule
ESB provides a built-in REST component based on Jersey project.
In the first example, we will explore the possibility of creating
RESTful web services without using the built-in component;
The HTTP endpoint of the flow is configured as below. The
examples of the earlier post covered one way HTTP end point,
this one covers two way or request-response paradigm.
The following configuration settings are done in the ‘General’
tab of the HTTP component.
Exchange-patterns: request-response
Host: localhost
Port: 8081
Path: rest
The next component in the flow is Body to Parameter Body.
Retain the default values. The final component in the flow is
Maps to XML component. Retain the default values for this
component as well.
To invoke the application, open any browser window and
type the following:
http://localhost:8081/rest?name=Rori&age=33
The output generated in the browser window is shown below:
<?xml version="1.0" encoding="UTF-8"?>
<table>
<record>
<field name="age"
type="java.lang.String">40</field>
<field name="name"
type="java.lang.String">Rori</field>
</record>
</table>
The source code of the mule flow is shown below:
<?xml version="1.0" encoding="UTF-8"?>
<mule
xmlns:tracking=http://www.mulesoft.org/schema/mule/ee/tra
cking xmlns:jdbc-
ee=http://www.mulesoft.org/schema/mule/ee/jdbc
xmlns:http="http://www.mulesoft.org/schema/mule/http"
<flow name="http_restfulwsFlow" >
<http:inbound-endpoint exchange-pattern="request-
response"
host="localhost" port="8081" path="rest“
mimeType="text/plain" contentType="text/plain«
doc:name="HTTP"/>
<response>
<jdbc-ee:maps-to-xml-transformer doc:name="Maps to
XML"/>
</response>
<http:body-to-parameter-map-transformer doc:name="Body
to Parameter Map"/>
</flow>
</mule>
For all practical purposes, the developer would like to have the
ability to customize the output XML into a more sensible format
aligned to business domain. To achieve the same a new Mule
flow is created.
The grapfic flow is:
Rest fullservices

More Related Content

What's hot

Mule agent notifications
Mule agent notificationsMule agent notifications
Mule agent notifications
Shanky Gupta
 
Using mule with web services
Using mule with web servicesUsing mule with web services
Using mule with web services
Shanky Gupta
 
Dynamic file attribute
Dynamic file attributeDynamic file attribute
Dynamic file attribute
Anirban Sen Chowdhary
 
Automatic documentation with mule
Automatic documentation with muleAutomatic documentation with mule
Automatic documentation with mule
F K
 
Mule ESB - Mock Salesforce Interface
Mule ESB - Mock Salesforce InterfaceMule ESB - Mock Salesforce Interface
Mule ESB - Mock Salesforce Interface
krishananth
 
Quartz connector mule
Quartz connector   muleQuartz connector   mule
Quartz connector mule
Sindhu VL
 
Mule MongoDB connector
Mule MongoDB connectorMule MongoDB connector
Mule MongoDB connector
Ankush Sharma
 
Mule batch job
Mule batch jobMule batch job
Mule batch job
Anirban Sen Chowdhary
 
Mule esb :Data Weave
Mule esb :Data WeaveMule esb :Data Weave
Mule esb :Data Weave
AnilKumar Etagowni
 
Filter expression in mule
Filter expression in muleFilter expression in mule
Filter expression in mule
Rajkattamuri
 
Send email attachment using smtp in mule esb
Send email attachment using smtp in mule esbSend email attachment using smtp in mule esb
Send email attachment using smtp in mule esb
Praneethchampion
 
Http mule
Http muleHttp mule
Http mule
Karnam Karthik
 
SOAP To REST API Proxy
SOAP To REST API ProxySOAP To REST API Proxy
SOAP To REST API Proxy
Vince Soliza
 
Junit in mule demo
Junit in mule demoJunit in mule demo
Junit in mule demo
Sudha Ch
 
xslt in mule
xslt in mulexslt in mule
xslt in mule
Praneethchampion
 
Stored procedure in Mule
Stored procedure in MuleStored procedure in Mule
Stored procedure in Mule
Khasim Saheb
 
Using message enricher
Using message enricherUsing message enricher
Using message enricher
Son Nguyen
 

What's hot (17)

Mule agent notifications
Mule agent notificationsMule agent notifications
Mule agent notifications
 
Using mule with web services
Using mule with web servicesUsing mule with web services
Using mule with web services
 
Dynamic file attribute
Dynamic file attributeDynamic file attribute
Dynamic file attribute
 
Automatic documentation with mule
Automatic documentation with muleAutomatic documentation with mule
Automatic documentation with mule
 
Mule ESB - Mock Salesforce Interface
Mule ESB - Mock Salesforce InterfaceMule ESB - Mock Salesforce Interface
Mule ESB - Mock Salesforce Interface
 
Quartz connector mule
Quartz connector   muleQuartz connector   mule
Quartz connector mule
 
Mule MongoDB connector
Mule MongoDB connectorMule MongoDB connector
Mule MongoDB connector
 
Mule batch job
Mule batch jobMule batch job
Mule batch job
 
Mule esb :Data Weave
Mule esb :Data WeaveMule esb :Data Weave
Mule esb :Data Weave
 
Filter expression in mule
Filter expression in muleFilter expression in mule
Filter expression in mule
 
Send email attachment using smtp in mule esb
Send email attachment using smtp in mule esbSend email attachment using smtp in mule esb
Send email attachment using smtp in mule esb
 
Http mule
Http muleHttp mule
Http mule
 
SOAP To REST API Proxy
SOAP To REST API ProxySOAP To REST API Proxy
SOAP To REST API Proxy
 
Junit in mule demo
Junit in mule demoJunit in mule demo
Junit in mule demo
 
xslt in mule
xslt in mulexslt in mule
xslt in mule
 
Stored procedure in Mule
Stored procedure in MuleStored procedure in Mule
Stored procedure in Mule
 
Using message enricher
Using message enricherUsing message enricher
Using message enricher
 

Viewers also liked

Mann im Gebirge
Mann im GebirgeMann im Gebirge
Mann im Gebirge
Heinz Sterzenbach
 
Madison Ineen and Ant
Madison Ineen and AntMadison Ineen and Ant
Madison Ineen and Ant
takahe2
 
Sambit's Ozone Layer
Sambit's Ozone LayerSambit's Ozone Layer
Sambit's Ozone Layertakahe2
 
PRACTICA DE PUBLICACION
PRACTICA DE PUBLICACIONPRACTICA DE PUBLICACION
PRACTICA DE PUBLICACION
Colegio Emanuel
 
Juvenil a
Juvenil aJuvenil a
Juvenil afbcat
 
Fabio Feb 2012
Fabio Feb 2012Fabio Feb 2012
Fabio Feb 2012
Fabiocapellolookalike
 
Bijlage bij de uitnodiging voor trainign en masterclass
Bijlage bij de uitnodiging voor trainign en masterclassBijlage bij de uitnodiging voor trainign en masterclass
Bijlage bij de uitnodiging voor trainign en masterclassMarten Bos
 
Example esb flow
Example esb flowExample esb flow
Example esb flow
Antonio Pellegrino
 
Hmt Health Claims Brussels 1 December Pw
Hmt Health Claims Brussels 1 December PwHmt Health Claims Brussels 1 December Pw
Hmt Health Claims Brussels 1 December Pw
peterwennstrom
 
Glatfelter Service Policy Manual
Glatfelter Service Policy ManualGlatfelter Service Policy Manual
Glatfelter Service Policy ManualNatureSolv
 
la contabilidad
la contabilidadla contabilidad
la contabilidad
970726
 
Get Scrappy A (Small) Business Owners Guide To Marketing On Less
Get Scrappy   A (Small) Business Owners Guide To Marketing On LessGet Scrappy   A (Small) Business Owners Guide To Marketing On Less
Get Scrappy A (Small) Business Owners Guide To Marketing On Less
mfitzgerald0705
 
Influential Graphic Designers
Influential Graphic DesignersInfluential Graphic Designers
Influential Graphic Designers
Jo Lowes
 
Trabajo de gimnasio para futbolistas
Trabajo de gimnasio para futbolistasTrabajo de gimnasio para futbolistas
Trabajo de gimnasio para futbolistas
Abel Lorenzo Agras
 

Viewers also liked (17)

Mann im Gebirge
Mann im GebirgeMann im Gebirge
Mann im Gebirge
 
Diapositiva
DiapositivaDiapositiva
Diapositiva
 
Madison Ineen and Ant
Madison Ineen and AntMadison Ineen and Ant
Madison Ineen and Ant
 
Sambit's Ozone Layer
Sambit's Ozone LayerSambit's Ozone Layer
Sambit's Ozone Layer
 
PRACTICA DE PUBLICACION
PRACTICA DE PUBLICACIONPRACTICA DE PUBLICACION
PRACTICA DE PUBLICACION
 
Juvenil a
Juvenil aJuvenil a
Juvenil a
 
Fabio Feb 2012
Fabio Feb 2012Fabio Feb 2012
Fabio Feb 2012
 
Bijlage bij de uitnodiging voor trainign en masterclass
Bijlage bij de uitnodiging voor trainign en masterclassBijlage bij de uitnodiging voor trainign en masterclass
Bijlage bij de uitnodiging voor trainign en masterclass
 
Example esb flow
Example esb flowExample esb flow
Example esb flow
 
Wiechmann
WiechmannWiechmann
Wiechmann
 
Hmt Health Claims Brussels 1 December Pw
Hmt Health Claims Brussels 1 December PwHmt Health Claims Brussels 1 December Pw
Hmt Health Claims Brussels 1 December Pw
 
Glatfelter Service Policy Manual
Glatfelter Service Policy ManualGlatfelter Service Policy Manual
Glatfelter Service Policy Manual
 
la contabilidad
la contabilidadla contabilidad
la contabilidad
 
Get Scrappy A (Small) Business Owners Guide To Marketing On Less
Get Scrappy   A (Small) Business Owners Guide To Marketing On LessGet Scrappy   A (Small) Business Owners Guide To Marketing On Less
Get Scrappy A (Small) Business Owners Guide To Marketing On Less
 
Influential Graphic Designers
Influential Graphic DesignersInfluential Graphic Designers
Influential Graphic Designers
 
Pretemporada Fútbol
Pretemporada FútbolPretemporada Fútbol
Pretemporada Fútbol
 
Trabajo de gimnasio para futbolistas
Trabajo de gimnasio para futbolistasTrabajo de gimnasio para futbolistas
Trabajo de gimnasio para futbolistas
 

Similar to Rest fullservices

Mule ESB Components
Mule ESB Components Mule ESB Components
Mule ESB Components
pat_91
 
Top 50 MuleSoft interview questions
Top 50 MuleSoft interview questionsTop 50 MuleSoft interview questions
Top 50 MuleSoft interview questions
techievarsity
 
Mule connectors-part 1
Mule connectors-part 1Mule connectors-part 1
Mule connectors-part 1
VirtusaPolaris
 
Asp.net web api
Asp.net web apiAsp.net web api
Asp.net web api
Binu Bhasuran
 
Mule connectors-session1
Mule connectors-session1Mule connectors-session1
Mule connectors-session1
Vishnukanth Rachineni
 
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
 
Ibm tivoli access manager for e business tracing http connections redp4622
Ibm tivoli access manager for e business tracing http connections redp4622Ibm tivoli access manager for e business tracing http connections redp4622
Ibm tivoli access manager for e business tracing http connections redp4622Banking at Ho Chi Minh city
 
Pinterest like site using REST and Bottle
Pinterest like site using REST and Bottle Pinterest like site using REST and Bottle
Pinterest like site using REST and Bottle Gaurav Bhardwaj
 
Mule ESB Interview or Certification questions
Mule ESB Interview or Certification questionsMule ESB Interview or Certification questions
Mule ESB Interview or Certification questions
TechieVarsity
 
JavaEE6 my way
JavaEE6 my wayJavaEE6 my way
JavaEE6 my way
Nicola Pedot
 
Sending mail,web services
Sending mail,web servicesSending mail,web services
Sending mail,web services
Devang Patel
 
Mule esb
Mule esbMule esb
Rest Component
Rest ComponentRest Component
Rest Component
sivachandra mandalapu
 
Rest Service In Mule
Rest Service In Mule Rest Service In Mule
Rest Service In Mule
ChittipoluKeshav
 
Transform-to-Smart-ERP-using-Custom-Mobile-Apps.pptx
Transform-to-Smart-ERP-using-Custom-Mobile-Apps.pptxTransform-to-Smart-ERP-using-Custom-Mobile-Apps.pptx
Transform-to-Smart-ERP-using-Custom-Mobile-Apps.pptx
kmani5
 
Transform-to-Smart-ERP-using-Custom-Mobile-Apps.pptx (3).ppt
Transform-to-Smart-ERP-using-Custom-Mobile-Apps.pptx (3).pptTransform-to-Smart-ERP-using-Custom-Mobile-Apps.pptx (3).ppt
Transform-to-Smart-ERP-using-Custom-Mobile-Apps.pptx (3).ppt
HusseinWassof
 
Bt0083, server side programming theory
Bt0083, server side programming theoryBt0083, server side programming theory
Bt0083, server side programming theory
smumbahelp
 
Rest service in mule
Rest service in mule Rest service in mule
Rest service in mule
Harish43
 
Http component
Http componentHttp component
Http component
Antonio Pellegrino
 
Web Server and how we can design app in C#
Web Server and how we can design app  in C#Web Server and how we can design app  in C#
Web Server and how we can design app in C#
caohansnnuedu
 

Similar to Rest fullservices (20)

Mule ESB Components
Mule ESB Components Mule ESB Components
Mule ESB Components
 
Top 50 MuleSoft interview questions
Top 50 MuleSoft interview questionsTop 50 MuleSoft interview questions
Top 50 MuleSoft interview questions
 
Mule connectors-part 1
Mule connectors-part 1Mule connectors-part 1
Mule connectors-part 1
 
Asp.net web api
Asp.net web apiAsp.net web api
Asp.net web api
 
Mule connectors-session1
Mule connectors-session1Mule connectors-session1
Mule connectors-session1
 
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
 
Ibm tivoli access manager for e business tracing http connections redp4622
Ibm tivoli access manager for e business tracing http connections redp4622Ibm tivoli access manager for e business tracing http connections redp4622
Ibm tivoli access manager for e business tracing http connections redp4622
 
Pinterest like site using REST and Bottle
Pinterest like site using REST and Bottle Pinterest like site using REST and Bottle
Pinterest like site using REST and Bottle
 
Mule ESB Interview or Certification questions
Mule ESB Interview or Certification questionsMule ESB Interview or Certification questions
Mule ESB Interview or Certification questions
 
JavaEE6 my way
JavaEE6 my wayJavaEE6 my way
JavaEE6 my way
 
Sending mail,web services
Sending mail,web servicesSending mail,web services
Sending mail,web services
 
Mule esb
Mule esbMule esb
Mule esb
 
Rest Component
Rest ComponentRest Component
Rest Component
 
Rest Service In Mule
Rest Service In Mule Rest Service In Mule
Rest Service In Mule
 
Transform-to-Smart-ERP-using-Custom-Mobile-Apps.pptx
Transform-to-Smart-ERP-using-Custom-Mobile-Apps.pptxTransform-to-Smart-ERP-using-Custom-Mobile-Apps.pptx
Transform-to-Smart-ERP-using-Custom-Mobile-Apps.pptx
 
Transform-to-Smart-ERP-using-Custom-Mobile-Apps.pptx (3).ppt
Transform-to-Smart-ERP-using-Custom-Mobile-Apps.pptx (3).pptTransform-to-Smart-ERP-using-Custom-Mobile-Apps.pptx (3).ppt
Transform-to-Smart-ERP-using-Custom-Mobile-Apps.pptx (3).ppt
 
Bt0083, server side programming theory
Bt0083, server side programming theoryBt0083, server side programming theory
Bt0083, server side programming theory
 
Rest service in mule
Rest service in mule Rest service in mule
Rest service in mule
 
Http component
Http componentHttp component
Http component
 
Web Server and how we can design app in C#
Web Server and how we can design app  in C#Web Server and how we can design app  in C#
Web Server and how we can design app in C#
 

More from Antonio Pellegrino

Example esb file-to-string flow
Example esb file-to-string flowExample esb file-to-string flow
Example esb file-to-string flow
Antonio Pellegrino
 
Example esb flow
Example esb flowExample esb flow
Example esb flow
Antonio Pellegrino
 
Esb first http flow
Esb first http flowEsb first http flow
Esb first http flow
Antonio Pellegrino
 
Configurare https mule
Configurare https muleConfigurare https mule
Configurare https mule
Antonio Pellegrino
 
Configurare http mule
Configurare http muleConfigurare http mule
Configurare http mule
Antonio Pellegrino
 
Transformation csvtoxml
Transformation csvtoxmlTransformation csvtoxml
Transformation csvtoxml
Antonio Pellegrino
 
Transformation xmltoobjectesb
Transformation xmltoobjectesbTransformation xmltoobjectesb
Transformation xmltoobjectesb
Antonio Pellegrino
 
Transformation jsontoxmlesb
Transformation jsontoxmlesbTransformation jsontoxmlesb
Transformation jsontoxmlesb
Antonio Pellegrino
 
Transformation jsontojsonesb
Transformation jsontojsonesbTransformation jsontojsonesb
Transformation jsontojsonesb
Antonio Pellegrino
 
Json to json transformation in mule
Json to json transformation in muleJson to json transformation in mule
Json to json transformation in mule
Antonio Pellegrino
 
Create web services jax - ws3
Create web services jax - ws3Create web services jax - ws3
Create web services jax - ws3
Antonio Pellegrino
 
Create web services jax - ws2
Create web services jax - ws2Create web services jax - ws2
Create web services jax - ws2
Antonio Pellegrino
 
Create web services jax - ws1
Create web services jax - ws1Create web services jax - ws1
Create web services jax - ws1
Antonio Pellegrino
 

More from Antonio Pellegrino (13)

Example esb file-to-string flow
Example esb file-to-string flowExample esb file-to-string flow
Example esb file-to-string flow
 
Example esb flow
Example esb flowExample esb flow
Example esb flow
 
Esb first http flow
Esb first http flowEsb first http flow
Esb first http flow
 
Configurare https mule
Configurare https muleConfigurare https mule
Configurare https mule
 
Configurare http mule
Configurare http muleConfigurare http mule
Configurare http mule
 
Transformation csvtoxml
Transformation csvtoxmlTransformation csvtoxml
Transformation csvtoxml
 
Transformation xmltoobjectesb
Transformation xmltoobjectesbTransformation xmltoobjectesb
Transformation xmltoobjectesb
 
Transformation jsontoxmlesb
Transformation jsontoxmlesbTransformation jsontoxmlesb
Transformation jsontoxmlesb
 
Transformation jsontojsonesb
Transformation jsontojsonesbTransformation jsontojsonesb
Transformation jsontojsonesb
 
Json to json transformation in mule
Json to json transformation in muleJson to json transformation in mule
Json to json transformation in mule
 
Create web services jax - ws3
Create web services jax - ws3Create web services jax - ws3
Create web services jax - ws3
 
Create web services jax - ws2
Create web services jax - ws2Create web services jax - ws2
Create web services jax - ws2
 
Create web services jax - ws1
Create web services jax - ws1Create web services jax - ws1
Create web services jax - ws1
 

Recently uploaded

Company Valuation webinar series - Tuesday, 4 June 2024
Company Valuation webinar series - Tuesday, 4 June 2024Company Valuation webinar series - Tuesday, 4 June 2024
Company Valuation webinar series - Tuesday, 4 June 2024
FelixPerez547899
 
Buy Verified PayPal Account | Buy Google 5 Star Reviews
Buy Verified PayPal Account | Buy Google 5 Star ReviewsBuy Verified PayPal Account | Buy Google 5 Star Reviews
Buy Verified PayPal Account | Buy Google 5 Star Reviews
usawebmarket
 
Improving profitability for small business
Improving profitability for small businessImproving profitability for small business
Improving profitability for small business
Ben Wann
 
Call 8867766396 Satta Matka Dpboss Matka Guessing Satta batta Matka 420 Satta...
Call 8867766396 Satta Matka Dpboss Matka Guessing Satta batta Matka 420 Satta...Call 8867766396 Satta Matka Dpboss Matka Guessing Satta batta Matka 420 Satta...
Call 8867766396 Satta Matka Dpboss Matka Guessing Satta batta Matka 420 Satta...
bosssp10
 
Business Valuation Principles for Entrepreneurs
Business Valuation Principles for EntrepreneursBusiness Valuation Principles for Entrepreneurs
Business Valuation Principles for Entrepreneurs
Ben Wann
 
Cracking the Workplace Discipline Code Main.pptx
Cracking the Workplace Discipline Code Main.pptxCracking the Workplace Discipline Code Main.pptx
Cracking the Workplace Discipline Code Main.pptx
Workforce Group
 
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdfModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
fisherameliaisabella
 
Premium MEAN Stack Development Solutions for Modern Businesses
Premium MEAN Stack Development Solutions for Modern BusinessesPremium MEAN Stack Development Solutions for Modern Businesses
Premium MEAN Stack Development Solutions for Modern Businesses
SynapseIndia
 
Mastering B2B Payments Webinar from BlueSnap
Mastering B2B Payments Webinar from BlueSnapMastering B2B Payments Webinar from BlueSnap
Mastering B2B Payments Webinar from BlueSnap
Norma Mushkat Gaffin
 
Introduction to Amazon company 111111111111
Introduction to Amazon company 111111111111Introduction to Amazon company 111111111111
Introduction to Amazon company 111111111111
zoyaansari11365
 
Maksym Vyshnivetskyi: PMO Quality Management (UA)
Maksym Vyshnivetskyi: PMO Quality Management (UA)Maksym Vyshnivetskyi: PMO Quality Management (UA)
Maksym Vyshnivetskyi: PMO Quality Management (UA)
Lviv Startup Club
 
Exploring Patterns of Connection with Social Dreaming
Exploring Patterns of Connection with Social DreamingExploring Patterns of Connection with Social Dreaming
Exploring Patterns of Connection with Social Dreaming
Nicola Wreford-Howard
 
Discover the innovative and creative projects that highlight my journey throu...
Discover the innovative and creative projects that highlight my journey throu...Discover the innovative and creative projects that highlight my journey throu...
Discover the innovative and creative projects that highlight my journey throu...
dylandmeas
 
Bài tập - Tiếng anh 11 Global Success UNIT 1 - Bản HS.doc
Bài tập - Tiếng anh 11 Global Success UNIT 1 - Bản HS.docBài tập - Tiếng anh 11 Global Success UNIT 1 - Bản HS.doc
Bài tập - Tiếng anh 11 Global Success UNIT 1 - Bản HS.doc
daothibichhang1
 
20240425_ TJ Communications Credentials_compressed.pdf
20240425_ TJ Communications Credentials_compressed.pdf20240425_ TJ Communications Credentials_compressed.pdf
20240425_ TJ Communications Credentials_compressed.pdf
tjcomstrang
 
Evgen Osmak: Methods of key project parameters estimation: from the shaman-in...
Evgen Osmak: Methods of key project parameters estimation: from the shaman-in...Evgen Osmak: Methods of key project parameters estimation: from the shaman-in...
Evgen Osmak: Methods of key project parameters estimation: from the shaman-in...
Lviv Startup Club
 
Affordable Stationery Printing Services in Jaipur | Navpack n Print
Affordable Stationery Printing Services in Jaipur | Navpack n PrintAffordable Stationery Printing Services in Jaipur | Navpack n Print
Affordable Stationery Printing Services in Jaipur | Navpack n Print
Navpack & Print
 
3.0 Project 2_ Developing My Brand Identity Kit.pptx
3.0 Project 2_ Developing My Brand Identity Kit.pptx3.0 Project 2_ Developing My Brand Identity Kit.pptx
3.0 Project 2_ Developing My Brand Identity Kit.pptx
tanyjahb
 
Search Disrupted Google’s Leaked Documents Rock the SEO World.pdf
Search Disrupted Google’s Leaked Documents Rock the SEO World.pdfSearch Disrupted Google’s Leaked Documents Rock the SEO World.pdf
Search Disrupted Google’s Leaked Documents Rock the SEO World.pdf
Arihant Webtech Pvt. Ltd
 
RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...
RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...
RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...
BBPMedia1
 

Recently uploaded (20)

Company Valuation webinar series - Tuesday, 4 June 2024
Company Valuation webinar series - Tuesday, 4 June 2024Company Valuation webinar series - Tuesday, 4 June 2024
Company Valuation webinar series - Tuesday, 4 June 2024
 
Buy Verified PayPal Account | Buy Google 5 Star Reviews
Buy Verified PayPal Account | Buy Google 5 Star ReviewsBuy Verified PayPal Account | Buy Google 5 Star Reviews
Buy Verified PayPal Account | Buy Google 5 Star Reviews
 
Improving profitability for small business
Improving profitability for small businessImproving profitability for small business
Improving profitability for small business
 
Call 8867766396 Satta Matka Dpboss Matka Guessing Satta batta Matka 420 Satta...
Call 8867766396 Satta Matka Dpboss Matka Guessing Satta batta Matka 420 Satta...Call 8867766396 Satta Matka Dpboss Matka Guessing Satta batta Matka 420 Satta...
Call 8867766396 Satta Matka Dpboss Matka Guessing Satta batta Matka 420 Satta...
 
Business Valuation Principles for Entrepreneurs
Business Valuation Principles for EntrepreneursBusiness Valuation Principles for Entrepreneurs
Business Valuation Principles for Entrepreneurs
 
Cracking the Workplace Discipline Code Main.pptx
Cracking the Workplace Discipline Code Main.pptxCracking the Workplace Discipline Code Main.pptx
Cracking the Workplace Discipline Code Main.pptx
 
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdfModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
 
Premium MEAN Stack Development Solutions for Modern Businesses
Premium MEAN Stack Development Solutions for Modern BusinessesPremium MEAN Stack Development Solutions for Modern Businesses
Premium MEAN Stack Development Solutions for Modern Businesses
 
Mastering B2B Payments Webinar from BlueSnap
Mastering B2B Payments Webinar from BlueSnapMastering B2B Payments Webinar from BlueSnap
Mastering B2B Payments Webinar from BlueSnap
 
Introduction to Amazon company 111111111111
Introduction to Amazon company 111111111111Introduction to Amazon company 111111111111
Introduction to Amazon company 111111111111
 
Maksym Vyshnivetskyi: PMO Quality Management (UA)
Maksym Vyshnivetskyi: PMO Quality Management (UA)Maksym Vyshnivetskyi: PMO Quality Management (UA)
Maksym Vyshnivetskyi: PMO Quality Management (UA)
 
Exploring Patterns of Connection with Social Dreaming
Exploring Patterns of Connection with Social DreamingExploring Patterns of Connection with Social Dreaming
Exploring Patterns of Connection with Social Dreaming
 
Discover the innovative and creative projects that highlight my journey throu...
Discover the innovative and creative projects that highlight my journey throu...Discover the innovative and creative projects that highlight my journey throu...
Discover the innovative and creative projects that highlight my journey throu...
 
Bài tập - Tiếng anh 11 Global Success UNIT 1 - Bản HS.doc
Bài tập - Tiếng anh 11 Global Success UNIT 1 - Bản HS.docBài tập - Tiếng anh 11 Global Success UNIT 1 - Bản HS.doc
Bài tập - Tiếng anh 11 Global Success UNIT 1 - Bản HS.doc
 
20240425_ TJ Communications Credentials_compressed.pdf
20240425_ TJ Communications Credentials_compressed.pdf20240425_ TJ Communications Credentials_compressed.pdf
20240425_ TJ Communications Credentials_compressed.pdf
 
Evgen Osmak: Methods of key project parameters estimation: from the shaman-in...
Evgen Osmak: Methods of key project parameters estimation: from the shaman-in...Evgen Osmak: Methods of key project parameters estimation: from the shaman-in...
Evgen Osmak: Methods of key project parameters estimation: from the shaman-in...
 
Affordable Stationery Printing Services in Jaipur | Navpack n Print
Affordable Stationery Printing Services in Jaipur | Navpack n PrintAffordable Stationery Printing Services in Jaipur | Navpack n Print
Affordable Stationery Printing Services in Jaipur | Navpack n Print
 
3.0 Project 2_ Developing My Brand Identity Kit.pptx
3.0 Project 2_ Developing My Brand Identity Kit.pptx3.0 Project 2_ Developing My Brand Identity Kit.pptx
3.0 Project 2_ Developing My Brand Identity Kit.pptx
 
Search Disrupted Google’s Leaked Documents Rock the SEO World.pdf
Search Disrupted Google’s Leaked Documents Rock the SEO World.pdfSearch Disrupted Google’s Leaked Documents Rock the SEO World.pdf
Search Disrupted Google’s Leaked Documents Rock the SEO World.pdf
 
RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...
RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...
RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...
 

Rest fullservices

  • 2. An ESB is expected to function as a service provider as well as a consumer. This tutorial will explain how Mule ESB can be configured to function as a RESTful WebService endpoint. Mule ESB provides a built-in REST component based on Jersey project. In the first example, we will explore the possibility of creating RESTful web services without using the built-in component;
  • 3. The HTTP endpoint of the flow is configured as below. The examples of the earlier post covered one way HTTP end point, this one covers two way or request-response paradigm. The following configuration settings are done in the ‘General’ tab of the HTTP component. Exchange-patterns: request-response Host: localhost Port: 8081 Path: rest
  • 4. The next component in the flow is Body to Parameter Body. Retain the default values. The final component in the flow is Maps to XML component. Retain the default values for this component as well. To invoke the application, open any browser window and type the following: http://localhost:8081/rest?name=Rori&age=33 The output generated in the browser window is shown below:
  • 5. <?xml version="1.0" encoding="UTF-8"?> <table> <record> <field name="age" type="java.lang.String">40</field> <field name="name" type="java.lang.String">Rori</field> </record> </table>
  • 6. The source code of the mule flow is shown below: <?xml version="1.0" encoding="UTF-8"?> <mule xmlns:tracking=http://www.mulesoft.org/schema/mule/ee/tra cking xmlns:jdbc- ee=http://www.mulesoft.org/schema/mule/ee/jdbc xmlns:http="http://www.mulesoft.org/schema/mule/http"
  • 7. <flow name="http_restfulwsFlow" > <http:inbound-endpoint exchange-pattern="request- response" host="localhost" port="8081" path="rest“ mimeType="text/plain" contentType="text/plain« doc:name="HTTP"/> <response> <jdbc-ee:maps-to-xml-transformer doc:name="Maps to XML"/>
  • 9. For all practical purposes, the developer would like to have the ability to customize the output XML into a more sensible format aligned to business domain. To achieve the same a new Mule flow is created. The grapfic flow is: