Still learning Mulesoft's Anypoint Studio... I am confused as how will I be able to access raw JSON POST data via the HTTP Listener then use the Choice flow control to execute conditions based on a value from a given JSON index. Anyone can show/tell me how to do this?
Mule Server 3.6 > Anypoint Studio > Raw JSON as POST data
736 Views Asked by ubuntux At
1
There are 1 best solutions below
Related Questions in MULE
- What is the relation of numberOfConcurrentTransactedReceivers with the number of threads mule spawns
- Mule 3.6 Custom Java Class
- How can I access Mule ESB Community edition via browser?
- Mule ESB Community Standalone Runtime
- Invalid Keystore Format when trying to deploy Mule project
- Custom Converter with log4j2 and Mule not working
- Getting Error While Using HTTP on Mule ESB canvas
- Which mule transports does the re-connection strategy work with
- When does the VM transport actually persist messages ? and also a peek into HA and VM transport
- Can I read or update dynamically the multiple Mule app properties without reloading or restarting?
- Mule: Migrating to the New HTTP Connector
- Where can I download MuleSoft Community Edition?
- Revoking OAuth tokens in Mule
- LDAP Search json output
- Basic JSON formatting using Mule Expression Language
Related Questions in ESB
- How to route by call method in proxy with WSO2?
- How to publish wsdl when using different endpoints in proxy with WSO2?
- How can microservices be truly independent when using an ESB (i.e. MassTransit)?
- Where can I download MuleSoft Community Edition?
- When passing data to an App in mule cloudhub via API gateway(CloudHub) getting exception -HTTP header is larger than 8192 bytes
- How to merge two wsdl in a wsdl file?
- Wso2ESB: Call Rest API through Entitlement policy from client producing CORS issue
- Mule Server 3.6 > Anypoint Studio > Raw JSON as POST data
- Mule Server 3.6 > Anypoint Studio > Request Connector
- Explain the relationship of ESB technology with EAI and SOA?
- Mule Server 3.6 > Anypoint Studio > Data Extraction
- WSO2 ESB cluster: Are workers able to reconnect after ELB dies?
- Synchronous communication in Apache Camel between Camel Context's
- wso2mb: error with durable subscriber
- How to keep mule CE 5.3.0 running
Related Questions in MULE-STUDIO
- Invalid Keystore Format when trying to deploy Mule project
- Getting Error While Using HTTP on Mule ESB canvas
- Where can I download MuleSoft Community Edition?
- When passing data to an App in mule cloudhub via API gateway(CloudHub) getting exception -HTTP header is larger than 8192 bytes
- Set value to payload using expression transformer
- how to achieve retry mechanism for ftp outbound end point using vm transaction?
- I want pass two payloads and variables data inside the VM in mule 3.4.2.How I need to pass them?
- Mule Server 3.6 > Anypoint Studio > Raw JSON as POST data
- Mule Server 3.6 > Anypoint Studio > Request Connector
- Mule Server 3.6 > Anypoint Studio > Data Extraction
- Error - Cannot apply transformer ObjectToHttpClientMethodRequest
- use an inbound VM or JMS endpoint with transactional delivery to perform retries on the outbound FTP endpoint
- MULE: xpath expression not extracting values from payload
- Making WebMQ Synchronous
- Mule Server 3.6 > Anypoint Studio > Remote Deployment Error
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The JSON HTTP body will automatically become the payload of your message in Mule probably represented as Stream.
Just for demo purposes, try logging the payload after your http:listener using:
There best way to query JSON is to transform it to a Map suing the JSON module transformers.
And then query it using MEL like standard MVEL or Java syntax.
For a JSON document like:
{"person" : {"name" : "bob"}}You can use these expressions in your choic router also: