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 Video Library
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
View Events Video Library
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

Modern Digital Website Security: Prepare to face any form of malicious web activity and enable your sites to optimally serve your customers.

Low-Code Development: Learn the concepts of low code, features + use cases for professional devs, and the low-code implementation process.

E-Commerce Development Essentials: Considering starting or working on an e-commerce business? Learn how to create a backend that scales.

Getting Started With Jenkins: Learn fundamentals that underpin CI/CD, how to create a pipeline, and when and where to use Jenkins.

Related

  • Schema Change Management Tools: A Practical Overview
  • Build a Full Stack App With SvelteKit and OceanBase
  • Java Module Benefits With Example
  • Application Mapping: 5 Key Benefits for Software Projects

Trending

  • The Scrum Trap
  • Revolutionizing Customer Relationships: Exploring the Synergy of CRM With Chat and React.js
  • How To Get Cell Data From an Excel Spreadsheet Using APIs in Java
  • Agile Testing: Blending Shift-Left, Automation, and Collaborative Testing Strategies
  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
·
Updated Sep. 20, 18 · Tutorial
Like (4)
Save
Tweet
Share
60.1K 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.

Related

  • Schema Change Management Tools: A Practical Overview
  • Build a Full Stack App With SvelteKit and OceanBase
  • Java Module Benefits With Example
  • Application Mapping: 5 Key Benefits for Software Projects

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
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends: