mule

How to fix “AttributeError: 'module' object has no attribute 'SOL_UDP'” error in Python Connector Mule

流过昼夜 提交于 2021-02-19 08:45:44
问题 I'm trying to execute a basic script to return Cisco Config File as a JSON Format, and I have a success process over Python2.7.16 and Python 3.7.3, but when I'm trying to execute the same script over Python Connector for Mule ESB I receive the error refered in the title of this thread. This is for a Mule feature, the Python connector script in this tool, works with a Jython 2.7.1, and is loaded as a library for the Mule. I expect the output as a JSON file but actual output is: Root Exception

Howto: Configure Spring-WS to publish WSDL files with a '?WSDL' style URL?

♀尐吖头ヾ 提交于 2021-02-18 12:18:05
问题 I am trying to configure web service proxying using Mule ESB. I am attempting to do this using Mule's WSProxyService, but after stepping through the corresponding code (with the debugger), it is clear that this class replaces endpoint addresses. The problem is Spring-WS WSDL addresses are of the style http://xxxx/xxxx.wsdl, but WSProxyService expects http://xxxx/xxxx?wsdl or http://xxxx/xxxx&wsdl. It replaces the remote endpoint addresses with the local WSDL address; it cuts the remote WSDL

How do I flatten a JSON array to a csv file

时光总嘲笑我的痴心妄想 提交于 2021-02-08 11:30:48
问题 I have an incoming payload in JSON format where I am outputting some of the objects to a CSV file. The payload also has one array: "Chargebacks": [ { "CostCenterCode": "123ABC", "AllocationPercentage": 100 }, { "CostCenterCode": "456DEF", "AllocationPercentage": 100 } ] I need the CSV file to contain: <other headers from the objects>,Cost Center Code 1, Allocation Percentage 1, Cost Center Code 2, Allocation Percentage 2 <other object values>,123ABC,100,456DEF,100 My first attempt was to

Mule application in anypoint studio throws Caused by: java.lang.ClassNotFoundException: com.google.common.cache.CacheLoader error

那年仲夏 提交于 2021-02-08 09:51:59
问题 When i try to run Mule application I get[1], Im not using gauva library as dependency in my pom.pacakging is defined as <packaging>mule-application</packaging> Why I get this error? How can I overcome? Im using anypoint studio version =7.4.1 which uses mule runtime 4.2.2 [1] Initializing app 'admin-api-v1' + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ERROR 2020-02-04 09:47:08,034 [WrapperListener_start_runner] [event: ] org.mule.runtime.module.deployment

Need clarification on “Transport Barrier” in understanding properties

房东的猫 提交于 2021-02-08 06:56:21
问题 i have read all "OUTBOUND" properties in Mule floe will be converted to "INBOUND" properties on crossing the "Transport barrier". i could not understand what is this "Transport barrier mean" . Is it calling an external world from an Mule outbound connector ? or calling an flow within the mule project itself ? 回答1: A "transport barrier" is when your Mule message goes through an endpoint that makes use of a transport (say for example, HTTP endpoints, JMS, TCP, VM, etc). There are two ways of

Carry Original File Name to FTP endpoint

泄露秘密 提交于 2021-02-08 06:24:14
问题 Using Mule Studio Version: 3.5.0 Build Id: 201402101410 I have a very simple flow. I need to pick up a file from one ftp server and transfer it to another ftp server. When the file is written to the target, the filename looks like some kind of UUId rather than the original file name. How do I get the file name to carry through? I have tried #[header:originalFilename] but that throws an error so I assume that maybe it is only for file connectors. Here is my flow: <?xml version="1.0" encoding=

DOM to XML transformer logic

风流意气都作罢 提交于 2021-02-08 02:10:29
问题 Can someone please explain to me why a DOM to XML transformer converts the output of a Web Service Consumer to an XML String representation? The output of the Web Service Consumer is a org.mule.module.ws.consumer.NamespaceRestorerXMLStreamReader . According to the official docs: The DomToXml transformer converts DOM objects to XML, the XmlToDom transformer converts XML strings to DOM objects, and the DomToOutputHandler transformer converts from a DOM to an OutputHandler serialization. They

DOM to XML transformer logic

╄→尐↘猪︶ㄣ 提交于 2021-02-08 02:08:18
问题 Can someone please explain to me why a DOM to XML transformer converts the output of a Web Service Consumer to an XML String representation? The output of the Web Service Consumer is a org.mule.module.ws.consumer.NamespaceRestorerXMLStreamReader . According to the official docs: The DomToXml transformer converts DOM objects to XML, the XmlToDom transformer converts XML strings to DOM objects, and the DomToOutputHandler transformer converts from a DOM to an OutputHandler serialization. They

Maven - How to replace value in any file in other location?

断了今生、忘了曾经 提交于 2021-01-29 10:12:58
问题 I have to replace value in file: test.xml This file location is: src/main/app . It is possible ? 回答1: Properties could be changed based on the ${app.name}. There is no need to change flow to change property file. <configuration-properties doc:name="Configuration properties" file="/var/mule/${MULE_ENV}/${app.name}/global.yaml" /> https://simpleflatservice.com/mule4/Properties.html 来源: https://stackoverflow.com/questions/61912352/maven-how-to-replace-value-in-any-file-in-other-location

Recursively parse XML to create JSON array using dataweave 2

爱⌒轻易说出口 提交于 2021-01-29 06:49:18
问题 I am trying to parse an XML recursively to create JSON array using dataweave 2 but I am not able to do so. My Input XML is given below - <?xml version="1.0" encoding="UTF-8"?> <Envelope xmlns="http://schemas.microsoft.com/dynamics/2011/01/documents/Message"> <Header> <MessageId>{8736346D-A766-4BE1-8592-C263A4CC2AB5}</MessageId> <Action>http://schemas.microsoft.com/dynamics/2008/01/services/BomBillsofMaterialsService/read</Action> </Header> <Body> <MessageParts xmlns="http://schemas.microsoft