Retrieve Query Parameters from Http Url


Create a project in Anypoint studio and configure the listener to retrieve Query Parameters from HTTP URL

We will pass the Name and EmpId as query parameter.


Drag and drop transform message and write Dataweave expression

Retrieve Query Parameters from HTTP URL

Dataweave expression:
%dw 2.0
output application/json

Deploy the project and run in debug mode and trigger the request

You can see the screenshot below query parameters, headers, uri parameters are part of attributes

Retrieve Query Parameters from HTTP URL


Test the application from SOAP UI


Sample application: retrievequeryparameters sample application

Thank you for taking out time to read the above post. Hope you found it useful. In case of any questions, feel free to comment below. Also, if you are keen on knowing about a specific topic, happy to explore your recommendations as well.
For any latest updates or posts on our website, you can follow us on LinkedIn. Look forward to connecting with you there.

Share this:
Notify of
Inline Feedbacks
View all comments