How to POST the String Payload to http localhost in mule? -
am new mule , need post string payload stored in variable http localhost. below configuration.
<flow name="requestflow" processingstrategy="synchronous"> <set-variable variablename="variable1" value="#[payload]" doc:name="set request"/> <ws:consumer config-ref="web_service_consumer" doc:name="web service consumer" operation="submit"/> <mulexml:dom-to-xml-transformer doc:name="dom xml"/> </flow>
i need post call before consuming web service. please advise.
for instance, have following url- localhost:8081/getdetails?country=india
and have query param named "country". query param in string format can use mel store value in variable follows-
[message.inboundproperties.'http.query.params'.country]
your variable like
<set-variable variablename="hello" value="#[message.inboundproperties.'http.query.params'.country]" doc:name="variable"/>
this work, try , reply.
thanks, vibhor
Comments
Post a Comment