How I can do for this example, located on Mule ESB documentation, work ?: -
how can example, located on mule esb documentation, work ?:
<http:request-config name="http_request_configuration" host="example.com" port="8081" doc:name="http_request_configuration"/> <flow name="test_flow"> <set-variable variablename="custommap" value="#[{'k2':'new', 'k3':'v3'}]" / <http:request request-config="http_request_configuration" path="test" method="get"> <http:request-builder> <http:query-params expression="#[flowvars.custonmap]" /> </http:request-builder> </http:request> </flow>
i giving me error!
- message : null (java.lang.nullpointerexception). message payload of type:
- string code : mule_error--2
exception stack is:
- null (java.lang.nullpointerexception) org.mule.module.http.internal.httpmapparam:41 (null)
- null (java.lang.nullpointerexception). message payload of type: string (org.mule.api.messagingexception)
org.mule.execution.exceptiontomessagingexceptionexecutioninterceptor:32 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/messagingexception.html)
typo:
<set-variable variablename="custommap"
is subsequently used custonmap not custommap in:
expression="#[flowvars.custonmap]"
Comments
Post a Comment