SlideShare a Scribd company logo
A Simple Web Service With VM
We all know how to expose a CXF based SOAP web services in Mule.
How about exposing the web service by decomposing a complex flow into smaller
part with VM component ??
One main reason to use this architecture, is that we can fragment the logic into
smaller pieces and can connect it and decouple each event, and is done mainly for
high performance and high control.
Advantage with breaking the flow with a queue :-
• Help to control on each event queue
• The service can be well-conditioned to load
• Preventing resources from being over committed when demand exceeds service
capacity.
So, let’s create our flow to expose a CXF web service by breaking the flow into 2 parts
connected with VM components as follows :-
You can see that we have used a set property after CXF component to store the
method name which is actually SOAP action here as the message properties generally
get lost if passed through a VM queue.
Our Mule config will be following :-
You can see in flow2 the SOAP action stored is provided as entry point for web service
implementing java class
Now, we can test our web service in SOAPUI and see that the web service is
generating a response which means it is working perfectly
So, if we are exposing a web service using VM endpoints the first thing we should keep
in mind is to store the outbound properties of the message before sending the
message to the VM outbound endpoint .
The main reason of doing is to protect the properties and get it in our next flow, since a
message may loose it’s outbound properties while passing through a VM.
In my next slide I will bring some other techniques of implementing VM endpoint in
our flow.
Hope you have enjoyed this simpler version.
Keep sharing your knowledge everywhere and let our mule community grow 
I have also shared this in my blog :- http://anirbansenchowdhary.com/blog/?p=220
So, Happy coding …
Simple web service vm

More Related Content

PPTX
Simple web service vm
Mohammed246
 
PPTX
Mule CXF component
Ankush Sharma
 
PPT
Flowvar and Sessionvar in Mule
Christian Hipolito
 
PPTX
Web service vm in mule
Mohammed246
 
PPTX
Validate soap request in mule
Mohammed246
 
PPTX
Basic example using vm component
prudhvivreddy
 
PPTX
Deploy apps in standalone with maven
Anirban Sen Chowdhary
 
PPT
Mule and web services
Prabhat gangwar
 
Simple web service vm
Mohammed246
 
Mule CXF component
Ankush Sharma
 
Flowvar and Sessionvar in Mule
Christian Hipolito
 
Web service vm in mule
Mohammed246
 
Validate soap request in mule
Mohammed246
 
Basic example using vm component
prudhvivreddy
 
Deploy apps in standalone with maven
Anirban Sen Chowdhary
 
Mule and web services
Prabhat gangwar
 

What's hot (9)

PPTX
Soap in mule
D.Rajesh Kumar
 
PPTX
Validating a soap request in mule
Anirban Sen Chowdhary
 
PPTX
Mule Microsoft Share Point 2010 Connector
Ankush Sharma
 
PPTX
Validate Soap Request in Mule
irfan1008
 
PPTX
VM example in mule
Anirban Sen Chowdhary
 
PPTX
Mule esb soap_service
Gennaro Spagnoli
 
PPTX
Mule soap
D.Rajesh Kumar
 
PPTX
Webservice vm in mule
Praneethchampion
 
PPTX
Soap request in mule
Praneethchampion
 
Soap in mule
D.Rajesh Kumar
 
Validating a soap request in mule
Anirban Sen Chowdhary
 
Mule Microsoft Share Point 2010 Connector
Ankush Sharma
 
Validate Soap Request in Mule
irfan1008
 
VM example in mule
Anirban Sen Chowdhary
 
Mule esb soap_service
Gennaro Spagnoli
 
Mule soap
D.Rajesh Kumar
 
Webservice vm in mule
Praneethchampion
 
Soap request in mule
Praneethchampion
 
Ad

Viewers also liked (16)

DOC
Tabrez CV
Tabrez Sayyad
 
DOC
Group policy object p1
laonap166
 
PDF
Mostafa C.V
Mostafa Bakr
 
PPTX
Game Thinking for L&D Framework
Zsolt Olah
 
PPTX
Laboratoriopowerpoint
Jose Castillo
 
PPT
Web Y Conectivismo
Brenda López
 
DOCX
Trabajo unidad II
ronald1917
 
PDF
Christopher Amante Resume
Christopher Amante
 
PDF
Análisis y selección de proceso de secado de cacao y diseño de prototipo de u...
Enrique Francisco Flores Gallo
 
PPTX
Productos de la Colmena
Karlita Jess
 
PPTX
Управляющий совет - сегодня, завтра, послезавтра
Доверие.Партнёрство.Право.
 
PPTX
Деятельность Управляющих Советов в образовательных организациях
Доверие.Партнёрство.Право.
 
PPSX
Профилактика близорукости
Доверие.Партнёрство.Право.
 
PDF
Proyecto mundo nuevof
marelagonbuca
 
PPT
Институт национальных ценностей
Анатолий Баляев
 
Tabrez CV
Tabrez Sayyad
 
Group policy object p1
laonap166
 
Mostafa C.V
Mostafa Bakr
 
Game Thinking for L&D Framework
Zsolt Olah
 
Laboratoriopowerpoint
Jose Castillo
 
Web Y Conectivismo
Brenda López
 
Trabajo unidad II
ronald1917
 
Christopher Amante Resume
Christopher Amante
 
Análisis y selección de proceso de secado de cacao y diseño de prototipo de u...
Enrique Francisco Flores Gallo
 
Productos de la Colmena
Karlita Jess
 
Управляющий совет - сегодня, завтра, послезавтра
Доверие.Партнёрство.Право.
 
Деятельность Управляющих Советов в образовательных организациях
Доверие.Партнёрство.Право.
 
Профилактика близорукости
Доверие.Партнёрство.Право.
 
Proyecto mundo nuevof
marelagonbuca
 
Институт национальных ценностей
Анатолий Баляев
 
Ad

Similar to Simple web service vm (20)

PPTX
WebService with VM Mule
irfan1008
 
PPTX
Web service vm in mule
Hasan Syed
 
PPTX
Web service vm in mule
Shahid Shaik
 
PPTX
Web service vm in mule
Sunil Komarapu
 
PPTX
Webservice vm in mule
Shahid Shaik
 
PPTX
Webservice with vm in mule
Rajkattamuri
 
PPTX
Webservice with vm in mule
javeed_mhd
 
PPTX
Webservice with vm in mule
Mohammed625
 
PPTX
Webservice with vm in mule
AbdulImrankhan7
 
PPTX
Webservice with vm in mule
Khan625
 
PPTX
Webservice with vm in mule
mdfkhan625
 
PPTX
Mulesoft vm transport reference
kumar gaurav
 
PPTX
Restservice with active mq
javeed_mhd
 
PPTX
Using mule with web services
Shanky Gupta
 
PPTX
Cache for community edition
Hasan Syed
 
PPTX
Cache for community edition
irfan1008
 
PPTX
Cache for community edition
Sunil Komarapu
 
PPTX
Cache for community edition
Mohammed246
 
PPTX
Cache for community edition
javeed_mhd
 
PPTX
Cache for community edition
mdfkhan625
 
WebService with VM Mule
irfan1008
 
Web service vm in mule
Hasan Syed
 
Web service vm in mule
Shahid Shaik
 
Web service vm in mule
Sunil Komarapu
 
Webservice vm in mule
Shahid Shaik
 
Webservice with vm in mule
Rajkattamuri
 
Webservice with vm in mule
javeed_mhd
 
Webservice with vm in mule
Mohammed625
 
Webservice with vm in mule
AbdulImrankhan7
 
Webservice with vm in mule
Khan625
 
Webservice with vm in mule
mdfkhan625
 
Mulesoft vm transport reference
kumar gaurav
 
Restservice with active mq
javeed_mhd
 
Using mule with web services
Shanky Gupta
 
Cache for community edition
Hasan Syed
 
Cache for community edition
irfan1008
 
Cache for community edition
Sunil Komarapu
 
Cache for community edition
Mohammed246
 
Cache for community edition
javeed_mhd
 
Cache for community edition
mdfkhan625
 

More from Khan625 (20)

PPTX
Mapping and listing in mule
Khan625
 
PPTX
Message properties component in Mule
Khan625
 
PPTX
Jenkins Build System
Khan625
 
PPTX
Building and Managing Projects with Maven
Khan625
 
PPTX
Web services soap
Khan625
 
PPTX
Web services wsdl
Khan625
 
PPTX
Web services uddi
Khan625
 
PPTX
Web services with soap
Khan625
 
PPTX
Maven
Khan625
 
PPTX
WebServices Basic Overview
Khan625
 
PPTX
Java Basics
Khan625
 
PPTX
Mmc rest api user groups
Khan625
 
PPTX
Mapping and listing with mule
Khan625
 
PPTX
Message properties component in mule
Khan625
 
PPTX
Expression filter in Mule
Khan625
 
PPTX
Data weave
Khan625
 
PPT
Anypoint data gateway
Khan625
 
PPTX
Mule with drools
Khan625
 
PPTX
Mule esb
Khan625
 
PPTX
Idempotent filter with simple file
Khan625
 
Mapping and listing in mule
Khan625
 
Message properties component in Mule
Khan625
 
Jenkins Build System
Khan625
 
Building and Managing Projects with Maven
Khan625
 
Web services soap
Khan625
 
Web services wsdl
Khan625
 
Web services uddi
Khan625
 
Web services with soap
Khan625
 
Maven
Khan625
 
WebServices Basic Overview
Khan625
 
Java Basics
Khan625
 
Mmc rest api user groups
Khan625
 
Mapping and listing with mule
Khan625
 
Message properties component in mule
Khan625
 
Expression filter in Mule
Khan625
 
Data weave
Khan625
 
Anypoint data gateway
Khan625
 
Mule with drools
Khan625
 
Mule esb
Khan625
 
Idempotent filter with simple file
Khan625
 

Recently uploaded (20)

PPTX
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
PDF
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
PPTX
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
PDF
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
PPTX
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
PPTX
The Future of AI & Machine Learning.pptx
pritsen4700
 
PDF
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PDF
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PPTX
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
PDF
The Future of Artificial Intelligence (AI)
Mukul
 
PDF
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
PDF
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PDF
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
PDF
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
The Future of AI & Machine Learning.pptx
pritsen4700
 
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
The Future of Artificial Intelligence (AI)
Mukul
 
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 

Simple web service vm

  • 1. A Simple Web Service With VM
  • 2. We all know how to expose a CXF based SOAP web services in Mule. How about exposing the web service by decomposing a complex flow into smaller part with VM component ??
  • 3. One main reason to use this architecture, is that we can fragment the logic into smaller pieces and can connect it and decouple each event, and is done mainly for high performance and high control.
  • 4. Advantage with breaking the flow with a queue :- • Help to control on each event queue • The service can be well-conditioned to load • Preventing resources from being over committed when demand exceeds service capacity.
  • 5. So, let’s create our flow to expose a CXF web service by breaking the flow into 2 parts connected with VM components as follows :-
  • 6. You can see that we have used a set property after CXF component to store the method name which is actually SOAP action here as the message properties generally get lost if passed through a VM queue.
  • 7. Our Mule config will be following :- You can see in flow2 the SOAP action stored is provided as entry point for web service implementing java class
  • 8. Now, we can test our web service in SOAPUI and see that the web service is generating a response which means it is working perfectly
  • 9. So, if we are exposing a web service using VM endpoints the first thing we should keep in mind is to store the outbound properties of the message before sending the message to the VM outbound endpoint . The main reason of doing is to protect the properties and get it in our next flow, since a message may loose it’s outbound properties while passing through a VM.
  • 10. In my next slide I will bring some other techniques of implementing VM endpoint in our flow. Hope you have enjoyed this simpler version. Keep sharing your knowledge everywhere and let our mule community grow  I have also shared this in my blog :- http://anirbansenchowdhary.com/blog/?p=220 So, Happy coding …