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 webservice with vm

More Related Content

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
 

Viewers also liked (18)

PPTX
Esb Basics
F K
 
PPT
Java Basics
F K
 
PPTX
Mule esb Data Weave
F K
 
PPTX
mule salesforce
F K
 
PPTX
Scatter gatherinmule
F K
 
PPTX
Mule with stored procedure
F K
 
PPTX
Selenium using Java
F K
 
PPTX
Creating dynamic json in Mule
F K
 
PPTX
Caching and invalidating with managed store
F K
 
PPTX
Idempotent filter in Mule
F K
 
PPT
Trenton Dierkes - Sound Financial Management
Trenton Dierkes
 
PPTX
Automatic documentation with mule
F K
 
PPTX
ESB Presentation
F K
 
PPT
Introduction to mule esb's
F K
 
PPTX
File component
F K
 
PPTX
Message properties component
F K
 
PPTX
Commit a project in svn using svn plugin in anypoint studio
F K
 
PPTX
Choice component
F K
 
Esb Basics
F K
 
Java Basics
F K
 
Mule esb Data Weave
F K
 
mule salesforce
F K
 
Scatter gatherinmule
F K
 
Mule with stored procedure
F K
 
Selenium using Java
F K
 
Creating dynamic json in Mule
F K
 
Caching and invalidating with managed store
F K
 
Idempotent filter in Mule
F K
 
Trenton Dierkes - Sound Financial Management
Trenton Dierkes
 
Automatic documentation with mule
F K
 
ESB Presentation
F K
 
Introduction to mule esb's
F K
 
File component
F K
 
Message properties component
F K
 
Commit a project in svn using svn plugin in anypoint studio
F K
 
Choice component
F K
 
Ad

Similar to Simple webservice with vm (20)

PPTX
Web service vm in mule
Shahid Shaik
 
PPTX
Webservice vm in mule
Shahid Shaik
 
PPTX
Web service vm in mule
Sunil Komarapu
 
PPTX
Web service vm in mule
Hasan Syed
 
PPTX
Webservice with vm in mule
Khan625
 
PPTX
Webservice with vm in mule
Rajkattamuri
 
PPTX
Webservice with vm in mule
AbdulImrankhan7
 
PPTX
Webservice with vm in mule
Mohammed625
 
PPTX
Webservice with vm in mule
mdfkhan625
 
PPTX
Webservice with vm in mule
javeed_mhd
 
PPTX
WebService with VM Mule
irfan1008
 
PPTX
Mulesoft vm transport reference
kumar gaurav
 
PPTX
ESB Online Training Part 2
Vince Soliza
 
PPTX
Vm component in mule demo
Sudha Ch
 
PPTX
Vm Component
Durga Prasad Kakarla
 
PPTX
Vm component in mule
javeed_mhd
 
PPTX
Vm component
Sunil Komarapu
 
PPTX
Vm component
F K
 
PPTX
How to use vm component
maheshtheapex
 
PPTX
Presentation : Business Process Management with mobile routes
Charif Mahmoudi
 
Web service vm in mule
Shahid Shaik
 
Webservice vm in mule
Shahid Shaik
 
Web service vm in mule
Sunil Komarapu
 
Web service vm in mule
Hasan Syed
 
Webservice with vm in mule
Khan625
 
Webservice with vm in mule
Rajkattamuri
 
Webservice with vm in mule
AbdulImrankhan7
 
Webservice with vm in mule
Mohammed625
 
Webservice with vm in mule
mdfkhan625
 
Webservice with vm in mule
javeed_mhd
 
WebService with VM Mule
irfan1008
 
Mulesoft vm transport reference
kumar gaurav
 
ESB Online Training Part 2
Vince Soliza
 
Vm component in mule demo
Sudha Ch
 
Vm Component
Durga Prasad Kakarla
 
Vm component in mule
javeed_mhd
 
Vm component
Sunil Komarapu
 
Vm component
F K
 
How to use vm component
maheshtheapex
 
Presentation : Business Process Management with mobile routes
Charif Mahmoudi
 
Ad

More from F K (19)

PPT
WebServices introduction in Mule
F K
 
PPTX
Testing soapui
F K
 
PPTX
Java For Begineers
F K
 
PPTX
Until successful component in mule
F K
 
PPTX
Quartz component
F K
 
PPTX
Mule management console installation
F K
 
PPTX
Mule esb made system integration easy
F K
 
PPTX
Junit in mule
F K
 
PPTX
Install sonarqube plugin in anypoint
F K
 
PPTX
Github plugin setup in anypoint studio
F K
 
PPTX
For each component
F K
 
PPTX
Filter expression
F K
 
PPTX
Database component
F K
 
PPTX
Mule with drools
F K
 
PPTX
Converting with custom transformer
F K
 
PPTX
Cache for community edition
F K
 
PPT
Multithreading
F K
 
PPTX
Mule
F K
 
PPTX
Java Programming
F K
 
WebServices introduction in Mule
F K
 
Testing soapui
F K
 
Java For Begineers
F K
 
Until successful component in mule
F K
 
Quartz component
F K
 
Mule management console installation
F K
 
Mule esb made system integration easy
F K
 
Junit in mule
F K
 
Install sonarqube plugin in anypoint
F K
 
Github plugin setup in anypoint studio
F K
 
For each component
F K
 
Filter expression
F K
 
Database component
F K
 
Mule with drools
F K
 
Converting with custom transformer
F K
 
Cache for community edition
F K
 
Multithreading
F K
 
Mule
F K
 
Java Programming
F K
 

Recently uploaded (20)

PDF
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
PPTX
Building and Operating a Private Cloud with CloudStack and LINBIT CloudStack ...
ShapeBlue
 
PDF
Rethinking Security Operations - SOC Evolution Journey.pdf
Haris Chughtai
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
Predicting the unpredictable: re-engineering recommendation algorithms for fr...
Speck&Tech
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PPTX
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
PPTX
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
PDF
Impact of IEEE Computer Society in Advancing Emerging Technologies including ...
Hironori Washizaki
 
PDF
Wojciech Ciemski for Top Cyber News MAGAZINE. June 2025
Dr. Ludmila Morozova-Buss
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
PPTX
Extensions Framework (XaaS) - Enabling Orchestrate Anything
ShapeBlue
 
PDF
Persuasive AI: risks and opportunities in the age of digital debate
Speck&Tech
 
PDF
Empowering Cloud Providers with Apache CloudStack and Stackbill
ShapeBlue
 
PDF
Women in Automation Presents: Reinventing Yourself — Bold Career Pivots That ...
DianaGray10
 
PDF
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
PPTX
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
PDF
Meetup Kickoff & Welcome - Rohit Yadav, CSIUG Chairman
ShapeBlue
 
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
Building and Operating a Private Cloud with CloudStack and LINBIT CloudStack ...
ShapeBlue
 
Rethinking Security Operations - SOC Evolution Journey.pdf
Haris Chughtai
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
Predicting the unpredictable: re-engineering recommendation algorithms for fr...
Speck&Tech
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
Impact of IEEE Computer Society in Advancing Emerging Technologies including ...
Hironori Washizaki
 
Wojciech Ciemski for Top Cyber News MAGAZINE. June 2025
Dr. Ludmila Morozova-Buss
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
Extensions Framework (XaaS) - Enabling Orchestrate Anything
ShapeBlue
 
Persuasive AI: risks and opportunities in the age of digital debate
Speck&Tech
 
Empowering Cloud Providers with Apache CloudStack and Stackbill
ShapeBlue
 
Women in Automation Presents: Reinventing Yourself — Bold Career Pivots That ...
DianaGray10
 
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
Meetup Kickoff & Welcome - Rohit Yadav, CSIUG Chairman
ShapeBlue
 

Simple webservice with 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 …