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
Partner Zones AWS Cloud
by AWS Developer Relations
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
Partner Zones
AWS Cloud
by AWS Developer Relations
The Latest "Software Integration: The Intersection of APIs, Microservices, and Cloud-Based Systems" Trend Report
Get the report
  1. DZone
  2. Data Engineering
  3. Databases
  4. Mule4: Passing Query Parameters to the HTTP URL

Mule4: Passing Query Parameters to the HTTP URL

This tutorial explains how to pass query parameters to the HTTP URL and fetch within Mule.

Ram Chennupati user avatar by
Ram Chennupati
·
Sep. 20, 18 · Tutorial
Like (4)
Save
Tweet
Share
57.40K Views

Join the DZone community and get the full member experience.

Join For Free

This is a simple program where beginners can focus on learning the passing query parameters to the HTTP URL and be able to fetch within the Mule application. As part of the exercise, I am running the application in debug mode so that beginners can start exploring the details of the payload by running different commands in the expression tab. Debug mode is the best practice to learn Mule quickly.

1) Please find the screenshot with the components dragged from the Mule Palette. Also, XML details are given in the next screenshot.

Image title

Image title

2) Right click on the "Set Payload" component and then click on Toggle breakpoint. 

Image title

3) After that, you would be able to see the Red colored dot on the left side of the "Set payload" component. With this step, you have set up the breakpoint. When you run the Mule application in debug mode, the application pauses at the breakpoint and we are then able to run the expression to evaluate different equations.

Image title

4) After that, you can start the application in debug mode.

Image title

5) After that, please click on the postman with the below URL as mentioned on the screen.

Image title

6) Once you click on the Send button, it will change to Sending, and the control stops at the breakpoint shown below.Image title

7) Click on the "Mule Debugger", which is next to the "Console", and then click on "Expression tab"(X+Y=?).Image title

8) Now you should able to see the expression button. Over there, you can type "attributes".

Image title

9) Please explore by accessing different keys in the attribute section. For example, I have typed the below command as shown in the screen, and you are able to view the query parameters passed in the Postman. Please verify it.

Image title

Summary

Although the program looks simple, many beginners fail to understand the basic concepts of query parameters. With this example, I am sure all beginners will be able to pick up the query parameters example and also learn how to do the debugging in the Mule application. I wish you luck!

Database application

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • 4 Best dApp Frameworks for First-Time Ethereum Developers
  • How to Use Buildpacks to Build Java Containers
  • Best Practices for Setting up Monitoring Operations for Your AI Team
  • Integrating AWS Secrets Manager With Spring Boot

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: