mule-studio

How to extract values from an xml list in Mule foreach

给你一囗甜甜゛ 提交于 2019-12-02 12:30:38
I have a following SOAP response :- <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <retrieveAllDataResponse xmlns="http://services.test.com/schema/MainData/V1"> <retrieveAllData> <Response>The Data retrieved from the Database</Response> <Id>1231</Id> <Name>test1</Name> <Age>560</Age> <Designation>Software Engineer</Designation> </retrieveAllData> <retrieveAllData> <Response>The Data retrieved from the Database</Response> <Id>165</Id> <Name>test2</Name> <Age>561</Age> <Designation>Senior Software Engineer</Designation> </retrieveAllData> <retrieveAllData>

How to upload multiple files via REST over HTTP using Mule?

本秂侑毒 提交于 2019-12-02 10:17:20
问题 I have a folder say "MyFiles" where I have lots of files. Now I need to upload those file via REST over HTTP . What will be the approach? I tried the below but it is wrong <flow name="testFlow1" doc:name="testFlow1"> <http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8081" doc:name="HTTP"/> <http:rest-service-component serviceUrl="http://localhost:8280/rest/xyz" httpMethod="POST"> </http:rest-service-component> <http:endpoint host="localhost" port="5430"

Mule won't allow POLL message processor to read file using file Inbound?

核能气质少年 提交于 2019-12-02 10:12:55
I have a small query, POLL message processor not allowing to read Files from 'File Inbound' message processor? I need to read the file for every 5 minutes (Schedule automatically) to proceed with further requirements. Is it possible using POLL? How can be file inbound used in POLL. Any suggestions will be helpful. I recommend you execute this operation using the quartz connector. Here's an example: <flow name="repeatIntervalFileFlow" doc:name="repeatIntervalFileFlow"> <quartz:inbound-endpoint responseTimeout="10000" doc:name="Quartz" jobName="test" repeatInterval="300000"> <quartz:event

Consume a web service method with multiple args in Mule esb

元气小坏坏 提交于 2019-12-02 09:58:01
Hello what I want to apply seems very simple but I don't know how, need some clarifications. here is the scenario: I want to call a web service method, this method name is find() and accept as argument an object, the object represent a composed primary key, composed by two strings an id and a type. the object -which is the primary key- representation in soap is : <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsd="http://wsdouane/"> <soapenv:Header/> <soapenv:Body> <wsd:find> <entity> <id>string_1</id> <type>string_2</type> </entity> </wsd:find> </soapenv

Mule JPA persist is not inserting or updating

若如初见. 提交于 2019-12-02 09:11:19
问题 I am using Mule JPA module for retrieving and insert/updating data. I can able retrieve data but not able to update the DB. Its giving no errors and as per the log it seems that the record got updated. But :( If I check DB no recorded is getting inserted. I believe that the transaction is not getting committed. Please help me how to achieve this issue. Here is my mflow <?xml version="1.0" encoding="UTF-8"?> <mule xmlns:tracking="http://www.mulesoft.org/schema/mule/ee/tracking" xmlns:json=

How to transform json-to-json document in Mule ESB

半城伤御伤魂 提交于 2019-12-02 07:11:46
问题 I have a flow with an HTTP endpoint that receives a json document. This should transformed into other json document: "json-to-json transformation. In mule ESB which is the best practice to do this without using an XSLT? They could sharing some example. Thanking your support. 回答1: Other than Datamapper which is a Enterprise feature, you can use Expression transformer component to create your JSON payload. So, when you receive the JSON payload after your HTTP, you parse the JSON using json-to

Anypoint Studio - Debugger is not launching

被刻印的时光 ゝ 提交于 2019-12-02 05:49:48
问题 I could not launch "Anypoint Studio Version: 5.3.0" debugger for ESB Mule project. When I clicked debug option from drop down menu for corresponding project, the console tab is running with INFO message. But in "Mule Debugger" tab shows that "Mule Debugger is not running. Launch your mule application in debug". I tried restarting anypoint studio and setting different ports to the debugger. But still same issue. 回答1: Issue got resolved ! I have changed port to 9999 from 6666. Earlier i have

Anypoint Studio - Debugger is not launching

可紊 提交于 2019-12-02 00:25:51
I could not launch "Anypoint Studio Version: 5.3.0" debugger for ESB Mule project. When I clicked debug option from drop down menu for corresponding project, the console tab is running with INFO message. But in "Mule Debugger" tab shows that "Mule Debugger is not running. Launch your mule application in debug". I tried restarting anypoint studio and setting different ports to the debugger. But still same issue. Issue got resolved ! I have changed port to 9999 from 6666. Earlier i have tried changing port from 6666 to 6667/6668/6669.. These ports are not working for me. So i have tried with

Extracting array from JSON in mule esb

自古美人都是妖i 提交于 2019-12-01 11:19:13
I'm using Mule 3.4 CE and I have a JSON data coming through HTTP in the following format: { "People" : [ { "Details" : { "Name" : "John Smith", "Email" : "abc@mail.com" } }, { "Details" : { "Name" : "Tim Smith", "Email" : "def@mail.com" } }, { "Details" : { "Name" : "Ken Smith", "Email" : "ghi@mail.com" } }, } I need to extract the emails and lookup the Salesforce contact with these emails and at the same time I want to retain the JSON payload. So my question is how do I extract the emails through MEL? (for e.g. something like "People/Details/*/Email" - I know this is not a valid, but I'm

Mule ESB - How to create a HTTP request with POST method (sending parameters along)

南楼画角 提交于 2019-12-01 11:10:35
Short: I want to post a couple of parameters (like user=admin, key=12345678) using the POST method to a PHP page (like localhost/post-debug.php). The script would read the $_POST values and do whatever. My questions are: 1. How can I get the example below to work? 2. How can I create the Map Payload with POST parameters from a JSON encoded payload and send it to the PHP script? Below is an isolated case I am trying to get running (the parameters are "read" from the HTTP endpoint). I am calling directly from the browser the following URL: http://localhost:8081/httpPost?user=admin&key=12345678