anypoint-studio

Send multiple files in HTTP request using RAML

与世无争的帅哥 提交于 2019-12-13 04:33:39
问题 I am writing an HTTP POST request using RAML and need to write it to be able to send multiple files in the request. The number of files might be different each time so need it to be dynamic. How do I do this? This will eventually be used with Anypoint Studio 6.2 and Mule 3.8.3 Thanks 回答1: If you are using RAML version 0.8 , try below construct.It is having repeat property which specify possiblilty of multiple uploads #%RAML 0.8 title: FileUploadExample baseUri: localhost /uploadMultipleFile:

“Executed multiple catch exception strategy ”

陌路散爱 提交于 2019-12-13 03:21:06
问题 I have choice exception strategy where I have multiple catch exception strategy there I am applying condition based on the error. Error 1: org.mule.api.MessagingException: Column 'department_id' cannot be null (java.sql.SQLIntegrityConstraintViolationException). Error 2: org.mule.api.MessagingException: org.mule.module.db.internal.domain.connection.ConnectionCreationException: Cannot get connection for URL jdbc:mysql://localhost:3306/mulesoft : Access denied for user 'root1212'@'localhost'

Using mulerequester when there are more than one jms or wmq connector

给你一囗甜甜゛ 提交于 2019-12-13 02:14:06
问题 This is continuation from How to use Mule Expression in JMS:selector but a different question. I am using mulerequester to read off the queue as shown below. <mulerequester:request config-ref="Mule_Requester" resource="wmq://REPLY.QUEUE?selector=JMSCorrelationID%3D'#[sessionVars.myCorrelationId]'" doc:name="Mule Requester" timeout="120000"/> It works if I have one wmqConnector but I have 2 wmq connectors in my mule project (wmqconnector and wmqconnector1), pointing to different servers.

Mule DataWeave transform-message failing with missing metadata:id attribute

狂风中的少年 提交于 2019-12-12 13:34:52
问题 I have a very simple hashmap payload being converted to application/json. I have done this in other flows by just dragging the dataweave component in, and writing the mapping expression. now for some reason, I am getting the following error: The prefix "metadata" for attribute "metadata:id" associated with an element type "dw:transform-message" is not bound. when I look at the xml, I see that my new dataweave component does not have a metadata:id attribute, but the other dataweave component i

Defining various DB & Salesforce access information in Mule Anypoint Studio

假如想象 提交于 2019-12-12 04:08:43
问题 I am running Mule Anypoint studio v6.2.4 under Windows. I have an application which gets data records from a SQL Server DB and populates them into Salesforce Org. The application was developed using examples and works fine in the current scenario of one DB and one SF parameters defined in mule.{mule.env}.properties file. Now I need to access a different DB for input records and populate them to a different Salesforce org. Changing the access parameters in properties file every time is tedious

Splitting a comma-separated string and saving to database without DataWeave in Mule

丶灬走出姿态 提交于 2019-12-12 02:55:35
问题 My one concern with many tools is that difficult things become easy, but easy things become difficult. I'm currently stuck with such a problem. I'm using the community edition of Mule. This edition does not include the DataWeave (used to be DataMapper) function. Is there a simple way to write a flow that splits a comma-separated string into values and save them to a table in a database? 回答1: Try the flow config bellow, basically you use MEL and split string, after splitting the payload will

Web Service Consumer Anypoint Studio (CE runtime): How to pass params?

拈花ヽ惹草 提交于 2019-12-11 23:21:07
问题 I need to pass params on Web Service/SOAP calls. I am using Web Service Consumer in Anypoint Studio (needs run on Mule CE - Community Edition), but I received the following message: "Operation messages with more than 1 part are not supported" Is there a form to call Web Service/SOAP on Mule CE passing params? Thanks for any help/examples! EDIT: Accord comment, I am testing a calculator web service, in SoapUI return result OK, but in mule return 0. I am passing the params with Set Payload

How to use Mule Expression in JMS:selector

依然范特西╮ 提交于 2019-12-11 12:23:49
问题 I checked several previous discussions but couldnt find the answer. I am trying to achieve synchronous communicaiton using JMS back-channel (http://www.whishworks.com/blog/synchronous-communication-using-jms-back-channel). Apart from the things mentioned in that site, I need to filter out the message from the inbound queue based on a dynamic Id. Following are my mule flows: <flow name="serverFlow" > <jms:inbound-endpoint doc:name="REQUEST" queue="REQUEST.QUEUE" connector-ref="jmsConnector">

Can not build the project after upgrading to mule version 3.8.4 to 3.7.4

落爺英雄遲暮 提交于 2019-12-11 04:28:46
问题 Previously I was building the project with the mule version 3.7.4. now, as mule version 3.8.4 is the latest one, so planned to build with this latest version. So, from Anypoint Studio I have downloaded the latest version. Then I updated my POM file with the 3.8.4 version. But it seems that with the same jars its not able to build the project. Its gives error as Failed to execute goal on project sho-pointofsales: Could not resolve dependencies for project com.sho:sho-pointofsales:mule:1.0

Cannot add Anypoint Platform authentication to Anypoint Studio in Ubuntu

我与影子孤独终老i 提交于 2019-12-11 04:13:10
问题 I am trying to add authentication for the Anypoint Platform in a mule project in Anypoint Studio Using: Anypoint platform --> Configure --> Authentication --> Add. The interface for entering username/passord appears as expected and the login is working. But I am unable to add and store the authentication to be used. I am getting the Anypoint Platform website in the dialog window. Below is a screenshot of what is shown after login, so no where to select the user as expected. I am running