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

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -