"Live as if you were to die tomorrow. Learn as if you were to live forever.The more that you read, the more things you will know. The more that you learn, the more places you'll go."
This blog has been created for the same objective.
I write on things which I come across in my daily life and feel to share it with the people across the world.
Sharing is Always Fun
Working with SOA technologies , implementing solution using IBM BPM , IBM Integration Designer,IBM WODM and IBM DataPower
Friday, 24 June 2016
How to pass query parameters with HTTP binding in IID
How to pass query parameterswith HTTP Binding in IBM Integration Designer:-
“Get Product Info HTTP Service ” retrieves product info from database based on product id
For example if you see below SOAP UI
If you observe URL
,product id passed through URL instead of body ,Response got fromdatabase
Now ,how can we implement HTTP client service for Get
Product Info HTTP Service in IID
Howto invoke a HTTP Servicefrom IID?
How to convert client request
to query parameters and Prepare target URL?
HTTP Client Module in IID:-
Ifyou observe below Assembly diagram, it have mediation flow and HTTP
Import configured with URL without query parameter.
If you go to mediation flow ,Used "HTTPHeaderSetter
primitive" to construct URL with query parameters
in "HTTPHeaderSetter Primitive " constructed the url,here product id (which comes in request) set
dynamically using Xpath as query parameter. Please see below
to SMOHeader/target/address using mapping primitive.
Make sure"use dynamic endpoint if set in the message header" checked
for service invoke
post helps you. So far this is my best effort to explain. Please correct me if
I do anything wrong.
Please post any issues/query’s related to IBM Bluemix,IBM BPM,WODM and
DATAPOWER to "firstname.lastname@example.org”.