SlideShare a Scribd company logo
MULE ESB – CONSUMING
RESTFUL WEB SERVICES
WITH RAML DEFINITION
Quick guide to call RESTful WS defined by RAML
Using RAML Definition to configure HTTP Request - 1
RAML Definition of a Web Service make the build of Request in Anypoint easier and quicker.
In this example we will start from a new flow, with a simple HTTP Listener as shown:
HTTP Listener Configuration can listen classically on localhost at port 8081, in example.
Using RAML Definition to configure HTTP Request - 2
To consume RESTful WS we add an HTTP Request after our listener:
In Mule Properties Tab of HTTP Request we will create a new Connector, clicking on ‘+’ button
Using RAML Definition to configure HTTP Request - 3
In Connector Configuration, in the section of API Configuration, it is needed to indicate RAML file that defines
your WS:
Automatically, in host, port and base path fields, values defined in RAML for the properties of RESTful WS will be
imported.
Using RAML Definition to configure HTTP Request - 4
In our HTTP Request, after importing RAML, we will be able, in URL settings, to call the paths defined and the
allowed methods in RAML file (RAML example taken by mulesoft.com):
Automatically, also URI Params and Query params with their default values defined in RAML will be
configured in HTTP Request.
• Mule in Action, David Dossot,John D'Emic Foreword by Ross Mason, Creator of Mule, July 2009
• https://docs.mulesoft.com/anypoint-platform-for-apis/walkthrough-design-existing
• raml.org/
• https://www.mulesoft.com/mulesoft-advances-api-design-tooling-raml
References:

More Related Content

PPTX
Mule – header collection
PPTX
Mule for each scope header collection
PPTX
Mule for each scope header collection
PPTX
Header collection
PPTX
Mule tcat server - Server profiles
PPTX
Mulehdfsconnector 160810122655
PPT
Server Load Balancing
PDF
Day3_Part 2_Apache_JMeter_Config_Elements
Mule – header collection
Mule for each scope header collection
Mule for each scope header collection
Header collection
Mule tcat server - Server profiles
Mulehdfsconnector 160810122655
Server Load Balancing
Day3_Part 2_Apache_JMeter_Config_Elements

What's hot (11)

DOCX
Example of BDD/scenario based vertical slicing (for PM/PO community)
PPT
clustering and load balancing
PPTX
Spring Cloud Config
PPTX
Mule Requester Usage Demo
PPTX
Until successful component in mule demo
PPTX
How to create sitemap for website
PPTX
Hadoop connector
PDF
Installing oracle apex
PPTX
MMC Rest API - Servers
PDF
Refresh development from productions
PDF
Introduction to Apache Synapse
Example of BDD/scenario based vertical slicing (for PM/PO community)
clustering and load balancing
Spring Cloud Config
Mule Requester Usage Demo
Until successful component in mule demo
How to create sitemap for website
Hadoop connector
Installing oracle apex
MMC Rest API - Servers
Refresh development from productions
Introduction to Apache Synapse
Ad

Similar to Mule ESB - Consuming RESTful WS with RAML Definition (20)

PPTX
Consuming raml
PPTX
Ws through raml
PPTX
Mule esb whole_web_services
PPTX
Mule esb _web_services
PPTX
Mule soft RAML API Designing
PDF
RAML BASED REST API with Mulesoft anypoint
PPTX
Rest fullservices
PPTX
Rest fullservices
PPTX
Rest fullservices
PPTX
mulesoft birmingham meetup_api_designing_with_raml
PPTX
MuleSoft London Community - May 2017 RAML
PDF
Engineering Student MuleSoft Meetup#2 - API Design Using Restful API Modelin...
PPTX
Using mule with web services
PPTX
Deep Dive into REST API Development | MuleSoft Mysore Meetup #16
PPTX
Mule raml
PPTX
Mule webservices
PPTX
How to – rest api proxy to soap webservice
PPTX
Restful api modeling language
PPTX
Simple service rest
PPTX
Rest web services
Consuming raml
Ws through raml
Mule esb whole_web_services
Mule esb _web_services
Mule soft RAML API Designing
RAML BASED REST API with Mulesoft anypoint
Rest fullservices
Rest fullservices
Rest fullservices
mulesoft birmingham meetup_api_designing_with_raml
MuleSoft London Community - May 2017 RAML
Engineering Student MuleSoft Meetup#2 - API Design Using Restful API Modelin...
Using mule with web services
Deep Dive into REST API Development | MuleSoft Mysore Meetup #16
Mule raml
Mule webservices
How to – rest api proxy to soap webservice
Restful api modeling language
Simple service rest
Rest web services
Ad

Recently uploaded (20)

PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PPTX
history of c programming in notes for students .pptx
PDF
Understanding Forklifts - TECH EHS Solution
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PPTX
Online Work Permit System for Fast Permit Processing
PPTX
ManageIQ - Sprint 268 Review - Slide Deck
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PPTX
Transform Your Business with a Software ERP System
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
medical staffing services at VALiNTRY
PPTX
Operating system designcfffgfgggggggvggggggggg
PPTX
CHAPTER 2 - PM Management and IT Context
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Upgrade and Innovation Strategies for SAP ERP Customers
history of c programming in notes for students .pptx
Understanding Forklifts - TECH EHS Solution
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
How to Migrate SBCGlobal Email to Yahoo Easily
VVF-Customer-Presentation2025-Ver1.9.pptx
Online Work Permit System for Fast Permit Processing
ManageIQ - Sprint 268 Review - Slide Deck
Softaken Excel to vCard Converter Software.pdf
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
Transform Your Business with a Software ERP System
Odoo POS Development Services by CandidRoot Solutions
PTS Company Brochure 2025 (1).pdf.......
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
medical staffing services at VALiNTRY
Operating system designcfffgfgggggggvggggggggg
CHAPTER 2 - PM Management and IT Context

Mule ESB - Consuming RESTful WS with RAML Definition

  • 1. MULE ESB – CONSUMING RESTFUL WEB SERVICES WITH RAML DEFINITION Quick guide to call RESTful WS defined by RAML
  • 2. Using RAML Definition to configure HTTP Request - 1 RAML Definition of a Web Service make the build of Request in Anypoint easier and quicker. In this example we will start from a new flow, with a simple HTTP Listener as shown: HTTP Listener Configuration can listen classically on localhost at port 8081, in example.
  • 3. Using RAML Definition to configure HTTP Request - 2 To consume RESTful WS we add an HTTP Request after our listener: In Mule Properties Tab of HTTP Request we will create a new Connector, clicking on ‘+’ button
  • 4. Using RAML Definition to configure HTTP Request - 3 In Connector Configuration, in the section of API Configuration, it is needed to indicate RAML file that defines your WS: Automatically, in host, port and base path fields, values defined in RAML for the properties of RESTful WS will be imported.
  • 5. Using RAML Definition to configure HTTP Request - 4 In our HTTP Request, after importing RAML, we will be able, in URL settings, to call the paths defined and the allowed methods in RAML file (RAML example taken by mulesoft.com): Automatically, also URI Params and Query params with their default values defined in RAML will be configured in HTTP Request.
  • 6. • Mule in Action, David Dossot,John D'Emic Foreword by Ross Mason, Creator of Mule, July 2009 • https://docs.mulesoft.com/anypoint-platform-for-apis/walkthrough-design-existing • raml.org/ • https://www.mulesoft.com/mulesoft-advances-api-design-tooling-raml References: