mule

How to extract a node value from an xml in Mule

删除回忆录丶 提交于 2020-01-16 12:08:06
问题 This is my source xml sample. <?xml version="1.0" encoding="UTF-8"?> <XML> <Meta> <Status>Success</Status> <Debug></Debug> </Meta> <Result> <Surveys> <element id='0'> <responses>6</responses> <SurveyType>SS</SurveyType> <SurveyID>SV_01C7i5l62dnKTel</SurveyID> <SurveyName>Georgia Dome GS</SurveyName> <SurveyDescription>Georgia Dome</SurveyDescription> <SurveyOwnerID>UR_8IZEh6bVlQaF41L</SurveyOwnerID> <DivisionID>DV_2cmHYrtm8C93T6J</DivisionID> <SurveyStatus>Active</SurveyStatus>

exposing mule http inbound endpoint

北城以北 提交于 2020-01-16 11:20:43
问题 Am unable to expose http endpoint/address on a CentOS server. The most confusing part is we are able to expose other endpoints as ajax etc which are in the example package of mule installation. I am unable to expose this simple echo flow either. I even tried an alternative of explicitly defining an http connector for the endpoint to refer.. still it doesn't work. Am really unable to understand what's going wrong... this post 9002 is not even showing up in netstat after I deploy the app to

Mule - Schedule a flow to consume a web service

≯℡__Kan透↙ 提交于 2020-01-16 08:48:18
问题 I'm new to Mule, and wanted to do one "simple" thing : Every X seconds, call a soap webservice operation and store the result in a file. My Flow looks actually like this : <?xml version="1.0" encoding="UTF-8"?> ... <custom-transformer class="net.cpy.samples.webservices.SampleMessage" name="MessageWs" doc:name="MessageWs"/> <flow name="csvPublisher" doc:name="csvPublisher"> <quartz:inbound-endpoint jobName="job1" repeatInterval="5000" responseTimeout="10000" doc:name="Quartz"> <quartz:event

Mule - Schedule a flow to consume a web service

a 夏天 提交于 2020-01-16 08:48:11
问题 I'm new to Mule, and wanted to do one "simple" thing : Every X seconds, call a soap webservice operation and store the result in a file. My Flow looks actually like this : <?xml version="1.0" encoding="UTF-8"?> ... <custom-transformer class="net.cpy.samples.webservices.SampleMessage" name="MessageWs" doc:name="MessageWs"/> <flow name="csvPublisher" doc:name="csvPublisher"> <quartz:inbound-endpoint jobName="job1" repeatInterval="5000" responseTimeout="10000" doc:name="Quartz"> <quartz:event

concatenate XML values using dataweave mule

一笑奈何 提交于 2020-01-16 06:41:50
问题 We have a scenario where we need to concatenate all XML node values to String. input XML <root> <line>1</line> <line>2</line> <line>3</line> <line>4</line> </root> Output to String 1234 Please let me know how can i achieve in form of String. Thanks in advance. 回答1: Referring DataWeave Reference Documentation at Reduce section: Transform %dw 1.0 %output application/json --- concat: ["a", "b", "c", "d"] reduce ($$ ++ $) Output { "concat": "abcd" } Therefore, you can try something like this:

mule dynamically setting soap operation

被刻印的时光 ゝ 提交于 2020-01-16 03:49:06
问题 In my flow I have a soap client calling a service. Since we are using 3 different operations from the service I'd like to dynamically fill in the "Operation" field under "Client Attributes" in Mule soap component. The way I have it working right now is: start flow -> message transformation -> choice flow control (based on the message type) choice 1. sub flow A -> soap client with operation A choice 2. sub flow B -> soap client with operation B choice 3. sub flow C -> soap client with

Mule ESB Groovy Unicode output issue

江枫思渺然 提交于 2020-01-16 00:42:08
问题 I have this little chain of components in my Mule ESB project: <set-payload value="Получена заявка ##[sessionVars['ticketID']]" doc:name="Set SMS Text"/> <scripting:transformer doc:name="Send SMS" ignoreBadInput="true"> <scripting:script engine="Groovy"><![CDATA[ new File("/tmp/groovy.out").withWriter { out -> out.println message.payload } ]]></scripting:script> </scripting:transformer> When message passes this chain in /tmp/groovy.out I can see "Џолучена заЯвка #4041" instead of expected

New Mule version 3.7.0 gives timeout exception when i try to read feed via simple HTTP

我的梦境 提交于 2020-01-15 20:56:42
问题 Just updated to mule esb version to 3.7.0 and end up breaking the system. I just created simple HTTP connector to load feed from web site and its throwing timeout exception even after setting the max timeout as 2 minutes. Sample Code : <http:request-config name="HTTP_Request_Configuration" host="www.theaggie.org" port="80" basePath="/feed/" doc:name="HTTP Request Configuration"> <http:proxy host="xxxxx" port="8080" username="xxxx" password="xxxx"/> </http:request-config> <flow name="testFlow"

New Mule version 3.7.0 gives timeout exception when i try to read feed via simple HTTP

偶尔善良 提交于 2020-01-15 20:56:12
问题 Just updated to mule esb version to 3.7.0 and end up breaking the system. I just created simple HTTP connector to load feed from web site and its throwing timeout exception even after setting the max timeout as 2 minutes. Sample Code : <http:request-config name="HTTP_Request_Configuration" host="www.theaggie.org" port="80" basePath="/feed/" doc:name="HTTP Request Configuration"> <http:proxy host="xxxxx" port="8080" username="xxxx" password="xxxx"/> </http:request-config> <flow name="testFlow"

Why is the mule json to xml transformer only picking up the first element?

吃可爱长大的小学妹 提交于 2020-01-15 06:10:31
问题 I am attempting to use the json-to-xml-transformer to transform a json message to xml but have not been able to find documentation on its use. I don't need any transformation of the data, simply turning the json properties into xml tags. When I attempt to use the transformer, all I get out is the first element from the json. Input JSON: { "site":"mysite", "erpCustno":"123", "shipToState":"PA", "shipToZip":"16684", "lineInfo": [ { "lineNumber": "10", "product": "MAT203" } ] } XML Output: <?xml