DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
  1. DZone
  2. Software Design and Architecture
  3. Integration
  4. Consuming SOAP Services in Mule ESB Runtime

Consuming SOAP Services in Mule ESB Runtime

SOAP web services can be consumed using a Mule SOAP message processor called Web Service Consumer, which uses WSDL to create and discover SOAP services.

Harish Kumar user avatar by
Harish Kumar
·
Mar. 16, 17 · Tutorial
Like (3)
Save
Tweet
Share
7.91K Views

Join the DZone community and get the full member experience.

Join For Free

You can watch a video tutorial for the previous blog here.

In my previous blog, I covered how to create a SOAP web service. I showed how Mule runtime uses a CXF component to expose SOAP web services.

In this blog, I will show you how to consume SOAP services using a Mule SOAP web service consumer.

Image title

Web Service Consumer

This message processor in Mule uses WSDL to create and discover SOAP services. You have two ways to define the WSDL of your web service: Give the URI of WSDL or add the WSDL file to your project classpath to the src/main/wsdl folder.

Screen Shot 2017-03-09 at 18.06.45

Then, select the WSDL file in the web service consumer configuration definition.

Screen Shot 2017-03-09 at 17.44.00

With the WSDL file location or URI, the component will auto discover the service, port, and address of your web service. In the next step, we need to select the web service operation in the consumer setting.

Screen Shot 2017-03-09 at 17.44.20

After setting the web service consumer, let's place it in the flow so that we can call it using postman. We will also drag and drop DataWeave message processors to set the input arguments for the web service consumer.

Screen Shot 2017-03-09 at 17.44.38

Once we are done with setting the flow and consumer, the only thing that remains is to test it. I will be using Postman to test the flow and see if the web service is being properly called.

Screen Shot 2017-03-09 at 21.31.51

Video

I have created a video tutorial for the above. You can watch it here:

SOAP Web Protocols Web Service Enterprise service bus

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • A Guide To Successful DevOps in Web3
  • Explainer: Building High Performing Data Product Platform
  • 5 Tips for Optimizing Your React App’s Performance
  • Easy Smart Contract Debugging With Truffle’s Console.log

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: