SlideShare a Scribd company logo
Mule – HTTP Connector
K Karthik
HTTP Listener :
 HTTP Listener connector provides a way to listen HTTP requests. Below
figure shows the HTTP listener.
Fig 1 - Http listener/Inbound Endpoint
HTTP
 Figure-2 shows the listener configuration, required fields are Connector
configuration and Path. Click “+” highlighted in red to create a global
connector for HTTP Listener. This connector will be available for all
HTTP Listeners within the application.
Fig 2 - Configuration for HTTP Listener
 Figure-3 shows the HTTP Listener configuration. Protocol, Host and
Port are required fields. If we do not supply any of these values,
defaults will be set. Below figure shows the defaults.
Fig 3 - HTTP Listener configuration
 Figure-4 shows the configuration for the Path element in the HTTP
Listener (Figure-2) highlighted in green. All flows which are configured to
use same HTTP Listener connector (Figure-3) will have the same URL. This
path will be appended at the end of the URL and helps in accessing a
specific application/flow.
Fig 4 - Basic Settings in HTTP Listener connector.
 Figure-5 shows the configuration XML for the flow created.
Fig 5 - Configuration XML.
 Code highlighted in orange shows the response builder for the service.
 statusCode- is the HTTP status code
 reasonPhrase- is the text if given, appears along with statusCode when the
response gets generated.
Fig 6 - HTTP Listener properties.
Figure-6 shows the HTTP Listener properties. This allows us to specify custom
message for HTTP Response and Error Response based on the status code.
The same reason will be shown in the HTTP Header.
HTTP Request:
• The HTTP Request Connector provides the most practical way to
consume an external HTTP service. When sending HTTP requests, you
can choose what method to use (GET, POST, etc) and may include a
body, headers, attachments, query parameters, form parameters and
URI parameters. The response is then received by the connector and is
passed on to the next element in the flow.
• Figure-6 shows the HTTP Request Configuration. Like HTTP Listener,
HTTP Request can also have a global connector defined. This global
connector is similar to the HTTP Listener connector created.
Figure-7: HTTP Request Transport
• Connector Configuration and Path are similar to the HTTP Listener.
Connector Configuration will have the details of the HTTP Service we
want to invoke. Path is same as mentioned for that application.
• Method lets us specify the HTTP method that the service accepts. This
attribute can take dynamic values also.
 Parameters let us supply the parameters that the service we are invoking
expects. These parameter can be header, query-params etc.. we can
choose from the list of options provided. We need to provide a Name
and a Value for each parameter we create. These Name and Value fields
also accept dynamic values.
 Figure-8 shows the configuration XML for the Greeter Service.
Figure-8 : Configuration XML
 Figure-9 shows the Response of the service created.
Figure-9: Response
 Text highlighted in red shows the custom message that we have set as
shown in Figure-5.
 Text highlighted in blue shows the response generated from our service
invocation.
THANK YOU 

More Related Content

PPTX
Using message enricher
PDF
Composite Source With Mule ESB
PPTX
Mulesoft http connector
PPTX
PPTX
MuleSoft ESB Sending email using hmailserver
PDF
Ftp server configuration on cisco packet tracer
PPTX
Splitting with mule part2
PPTX
Input and output flow using http and java component
Using message enricher
Composite Source With Mule ESB
Mulesoft http connector
MuleSoft ESB Sending email using hmailserver
Ftp server configuration on cisco packet tracer
Splitting with mule part2
Input and output flow using http and java component

What's hot (20)

PPTX
Mule message enricher
PPTX
Mule esb add logger to existing flow
PPTX
Encrypting/Decrypting mule
PPTX
Mule Ajax Connector
PDF
Email server configuration on cisco packet tracer
PPTX
Groovy example in mule
PPTX
Mule esb :Data Weave
PPT
Smtp
PPTX
Idempotent filter in Mule
 
PPT
Mule - logger
PPTX
Maven tools & archetypes
PPT
Protocolos de E-mail (SMTP, POP e IMAP)
PPTX
Xslt in mule
PPTX
Information on protocols-email protocols
PPTX
Simple Mail Transfer Protocol
PPT
E mail transfer .74
ODP
Mule ESB SMTP Connector Integration
PPTX
Quartz connector mule
PPT
transfer protocols,ftp,smtp,pop,imap
PPTX
Networking in Java
Mule message enricher
Mule esb add logger to existing flow
Encrypting/Decrypting mule
Mule Ajax Connector
Email server configuration on cisco packet tracer
Groovy example in mule
Mule esb :Data Weave
Smtp
Idempotent filter in Mule
 
Mule - logger
Maven tools & archetypes
Protocolos de E-mail (SMTP, POP e IMAP)
Xslt in mule
Information on protocols-email protocols
Simple Mail Transfer Protocol
E mail transfer .74
Mule ESB SMTP Connector Integration
Quartz connector mule
transfer protocols,ftp,smtp,pop,imap
Networking in Java
Ad

Viewers also liked (20)

PPTX
Automatic documentation with mule
PPT
Mule anypoint exchange
PPTX
Mapping and listing with mule
PPTX
Groovy with Mule
PPTX
Mule soap
PPTX
Mule soa
PPTX
Soap in mule
PPTX
Mule Requester Usage Demo
PPT
Mule esb batch
PPTX
Mule soap
PPTX
Send email attachment using smtp in mule esb
PPTX
Mule with drools
PPTX
Filter expression in mule demo
PPT
Mule compatible technologies
PPT
Mule b2 b
PPTX
Mule
PPTX
Mule esb
PPT
Mule esb api layer
PPT
Mule oracle connectors
PPTX
File component in mule demo
Automatic documentation with mule
Mule anypoint exchange
Mapping and listing with mule
Groovy with Mule
Mule soap
Mule soa
Soap in mule
Mule Requester Usage Demo
Mule esb batch
Mule soap
Send email attachment using smtp in mule esb
Mule with drools
Filter expression in mule demo
Mule compatible technologies
Mule b2 b
Mule
Mule esb
Mule esb api layer
Mule oracle connectors
File component in mule demo
Ad

Similar to Http mule (20)

PPTX
Http connector
PPTX
Mulesofthttpconnector
PPTX
Http connector
PPTX
Http connector
PPT
Mule - HTTP Listener
PPTX
Mule connectors
PDF
Rest http basics
PPTX
HTTP Basic
PDF
HTTP Definition and Basics.
PPTX
PPTX
Hypertex transfer protocol
PPT
web_01_HTTP.ppt
PPTX
Http_Protocol.pptx
PPT
HTTPProtocol HTTPProtocol.pptHTTPProtocol.ppt
PPTX
How to get http query parameters in mule
PDF
HTTP demystified for web developers
PPTX
HTTP request and response
PPTX
hhtp (3).pptx hyper text transfer protocol
PDF
Android Performance #4: Network
PPTX
Mule generic connector
Http connector
Mulesofthttpconnector
Http connector
Http connector
Mule - HTTP Listener
Mule connectors
Rest http basics
HTTP Basic
HTTP Definition and Basics.
Hypertex transfer protocol
web_01_HTTP.ppt
Http_Protocol.pptx
HTTPProtocol HTTPProtocol.pptHTTPProtocol.ppt
How to get http query parameters in mule
HTTP demystified for web developers
HTTP request and response
hhtp (3).pptx hyper text transfer protocol
Android Performance #4: Network
Mule generic connector

More from Karnam Karthik (16)

PPTX
Https service mule
PPTX
Routing and filters
PPTX
Mule system properties
PPTX
Mule splitters
PPTX
Mule properties
PPTX
Mule enricher
PPTX
Mule batch
PPTX
Jms queues
PPTX
Jms topics
PPTX
Mule java part-4
PPTX
Mule java part-3
PPTX
Mule java part-2
PPTX
Mule java part-1
PPTX
Mule java part-3
PPTX
Mule java part-1
PPTX
Mule expression component
Https service mule
Routing and filters
Mule system properties
Mule splitters
Mule properties
Mule enricher
Mule batch
Jms queues
Jms topics
Mule java part-4
Mule java part-3
Mule java part-2
Mule java part-1
Mule java part-3
Mule java part-1
Mule expression component

Recently uploaded (20)

PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
Cell Types and Its function , kingdom of life
PPTX
Cell Structure & Organelles in detailed.
PDF
RMMM.pdf make it easy to upload and study
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
GDM (1) (1).pptx small presentation for students
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Final Presentation General Medicine 03-08-2024.pptx
Supply Chain Operations Speaking Notes -ICLT Program
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Abdominal Access Techniques with Prof. Dr. R K Mishra
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
O7-L3 Supply Chain Operations - ICLT Program
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Anesthesia in Laparoscopic Surgery in India
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Cell Types and Its function , kingdom of life
Cell Structure & Organelles in detailed.
RMMM.pdf make it easy to upload and study
Module 4: Burden of Disease Tutorial Slides S2 2025
O5-L3 Freight Transport Ops (International) V1.pdf
GDM (1) (1).pptx small presentation for students

Http mule

  • 1. Mule – HTTP Connector K Karthik
  • 2. HTTP Listener :  HTTP Listener connector provides a way to listen HTTP requests. Below figure shows the HTTP listener. Fig 1 - Http listener/Inbound Endpoint HTTP
  • 3.  Figure-2 shows the listener configuration, required fields are Connector configuration and Path. Click “+” highlighted in red to create a global connector for HTTP Listener. This connector will be available for all HTTP Listeners within the application. Fig 2 - Configuration for HTTP Listener
  • 4.  Figure-3 shows the HTTP Listener configuration. Protocol, Host and Port are required fields. If we do not supply any of these values, defaults will be set. Below figure shows the defaults. Fig 3 - HTTP Listener configuration
  • 5.  Figure-4 shows the configuration for the Path element in the HTTP Listener (Figure-2) highlighted in green. All flows which are configured to use same HTTP Listener connector (Figure-3) will have the same URL. This path will be appended at the end of the URL and helps in accessing a specific application/flow. Fig 4 - Basic Settings in HTTP Listener connector.  Figure-5 shows the configuration XML for the flow created. Fig 5 - Configuration XML.
  • 6.  Code highlighted in orange shows the response builder for the service.  statusCode- is the HTTP status code  reasonPhrase- is the text if given, appears along with statusCode when the response gets generated. Fig 6 - HTTP Listener properties.
  • 7. Figure-6 shows the HTTP Listener properties. This allows us to specify custom message for HTTP Response and Error Response based on the status code. The same reason will be shown in the HTTP Header. HTTP Request: • The HTTP Request Connector provides the most practical way to consume an external HTTP service. When sending HTTP requests, you can choose what method to use (GET, POST, etc) and may include a body, headers, attachments, query parameters, form parameters and URI parameters. The response is then received by the connector and is passed on to the next element in the flow. • Figure-6 shows the HTTP Request Configuration. Like HTTP Listener, HTTP Request can also have a global connector defined. This global connector is similar to the HTTP Listener connector created.
  • 8. Figure-7: HTTP Request Transport • Connector Configuration and Path are similar to the HTTP Listener. Connector Configuration will have the details of the HTTP Service we want to invoke. Path is same as mentioned for that application. • Method lets us specify the HTTP method that the service accepts. This attribute can take dynamic values also.
  • 9.  Parameters let us supply the parameters that the service we are invoking expects. These parameter can be header, query-params etc.. we can choose from the list of options provided. We need to provide a Name and a Value for each parameter we create. These Name and Value fields also accept dynamic values.  Figure-8 shows the configuration XML for the Greeter Service. Figure-8 : Configuration XML
  • 10.  Figure-9 shows the Response of the service created. Figure-9: Response  Text highlighted in red shows the custom message that we have set as shown in Figure-5.  Text highlighted in blue shows the response generated from our service invocation.