mule-studio 相关问题

Mule Studio是一个标签,用于指代MuleSoft的Anypoint Studio ......

无法解析消费节点中参数的值

在我的流程中,我将变量操作设置为:payload.operation,然后在消耗节点中我想获取它的值 变量值正确设置 我还包括我的流程的 xml: 在我的流程中,我将变量操作设置为:payload.operation,然后在消耗节点中我想获取它的值 变量值设置正确 我还包括我的流程的 xml: <?xml version="1.0" encoding="UTF-8"?> <mule xmlns:netsuite="http://www.mulesoft.org/schema/mule/netsuite" xmlns:wsc="http://www.mulesoft.org/schema/mule/wsc" xmlns:ee="http://www.mulesoft.org/schema/mule/ee/core" xmlns:db="http://www.mulesoft.org/schema/mule/db" xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd http://www.mulesoft.org/schema/mule/db http://www.mulesoft.org/schema/mule/db/current/mule-db.xsd http://www.mulesoft.org/schema/mule/ee/core http://www.mulesoft.org/schema/mule/ee/core/current/mule-ee.xsd http://www.mulesoft.org/schema/mule/wsc http://www.mulesoft.org/schema/mule/wsc/current/mule-wsc.xsd http://www.mulesoft.org/schema/mule/netsuite http://www.mulesoft.org/schema/mule/netsuite/current/mule-netsuite.xsd"> <http:listener-config name="HTTP_Listener_config" doc:name="HTTP Listener config" doc:id="a532976e-413b-4f47-bc8f-3e79e6de1417" > <http:listener-connection host="0.0.0.0" port="8081" /> </http:listener-config> <db:config name="Database_Config" doc:name="Database Config" doc:id="276e5d43-bd49-4a82-b7c6-934288334aca" > <db:my-sql-connection host="mudb.learn.mulesoft.com" port="3306" user="mule" password="mule" database="training" /> </db:config> <wsc:config name="Web_Service_Consumer_Config" doc:name="Web Service Consumer Config" doc:id="a5692620-4f26-4b11-be70-b822710d6c0d" > <wsc:connection wsdlLocation="http://dneonline.com/calculator.asmx?WSDL" service="Calculator" port="CalculatorSoap12" soapVersion="SOAP12" address="http://www.dneonline.com/calculator.asmx"/> </wsc:config> <flow name="api-accountsFlow" doc:id="7a942ae2-4422-46ba-b57d-38bd37ec9f82" > <http:listener doc:name="Get Accounts Listener" doc:id="a1873bcc-b9f1-4cf7-a405-a1c835cdf69c" config-ref="HTTP_Listener_config" path="/calculator" /> <choice doc:name="Choice" doc:id="0b885797-7da1-4932-9183-869b5a670943" > <when expression='#[payload.operation=="Add" or payload.operation=="Subtract" or payload.operation=="Mul" or payload.operation=="Divide"]'> <set-variable value="#[payload.operation]" doc:name="Set Variable" doc:id="5c4da028-7ae8-43e6-ac35-84de6c3b4666" variableName="operation" /> <ee:transform doc:name="Transform JSON Request to XML" doc:id="86f3eebe-0050-4800-9c08-7167ded759d9" > <ee:message > <ee:set-payload ><![CDATA[%dw 2.0 output application/xml ns ns0 http://tempuri.org/ --- { ("ns0#" ++ vars.operation): { ns0#intA: payload.val1, ns0#intB: payload.val2 } } ]]></ee:set-payload> </ee:message> </ee:transform> <wsc:consume doc:name="Consume" doc:id="091e6ca8-a78d-4a6f-b947-679235f7bfa4" config-ref="Web_Service_Consumer_Config" operation="#[vars.operation]"/> <ee:transform doc:name="Transform JSON Request to XML1" doc:id="6b77fd85-8af7-4f96-a299-2b64445ede0b" > <ee:message > <ee:set-payload ><![CDATA[%dw 2.0 output application/json --- payload ]]></ee:set-payload> </ee:message> </ee:transform> </when> <otherwise > <logger level="INFO" doc:name="Logger" doc:id="b4a8341c-a265-4c60-ab58-9b42d899c8fd" /> <set-payload value="=== Operation Not Found ===" doc:name="Set Payload" doc:id="f8436921-0612-44b5-b12d-7dac7bfd7c2d" /> </otherwise> </choice> </flow> </mule> 当我运行我的流程时,我得到了 org.mule.runtime.module.extension.internal.runtime.ValueResolvingException: org.mule.runtime.module.extension.internal.runtime.ValueResolvingException: Unable to resolve value for the parameter: operation at org.mule.runtime.module.extension.internal.runtime.operation.OperationParameterValueResolver.getParameterValue(OperationParameterValueResolver.java:101) at org.mule.runtime.module.extension.internal.metadata.MetadataMediator.getMetadataKeyObjectValue(MetadataMediator.java:426) at org.mule.runtime.module.extension.internal.metadata.MetadataMediator.getMetadata(MetadataMediator.java:181) at org.mule.runtime.module.extension.internal.runtime.ExtensionComponent.lambda$getMetadata$21(ExtensionComponent.java:656) at org.mule.runtime.core.api.util.ExceptionUtils.tryExpecting(ExceptionUtils.java:224) at org.mule.runtime.core.api.util.ClassUtils.withContextClassLoader(ClassUtils.java:1102) at org.mule.runtime.core.api.util.ClassUtils.withContextClassLoader(ClassUtils.java:1020) at org.mule.runtime.module.extension.internal.runtime.ExtensionComponent.lambda$getMetadata$22(ExtensionComponent.java:655) at org.mule.runtime.module.extension.internal.runtime.ExtensionComponent.runWithMetadataContext(ExtensionComponent.java:793) at org.mule.runtime.module.extension.internal.runtime.ExtensionComponent.getMetadata(ExtensionComponent.java:654) at org.mule.runtime.metadata.internal.MuleMetadataService.lambda$getComponentMetadata$7(MuleMetadataService.java:218) at org.mule.runtime.metadata.internal.MuleMetadataService.exceptionHandledMetadataFetch(MuleMetadataService.java:174) at org.mule.runtime.metadata.internal.MuleMetadataService.getComponentMetadata(MuleMetadataService.java:217) at org.mule.runtime.metadata.internal.MuleMetadataService.getOperationMetadata(MuleMetadataService.java:116) at org.mule.runtime.config.internal.bean.lazy.LazyMetadataService.lambda$getOperationMetadata$4(LazyMetadataService.java:100) at java.util.Optional.orElseGet(Optional.java:267) at org.mule.runtime.config.internal.bean.lazy.LazyMetadataService.getOperationMetadata(LazyMetadataService.java:100) at com.mulesoft.agent.services.metadata.MuleAgentMetadataService.lambda$getOperationMetadata$2(MuleAgentMetadataService.java:75) at com.mulesoft.agent.services.metadata.MuleAgentMetadataService.withMetadataService(MuleAgentMetadataService.java:145) at com.mulesoft.agent.services.metadata.MuleAgentMetadataService.getOperationMetadata(MuleAgentMetadataService.java:75) at com.mulesoft.agent.external.handlers.metadata.MetadataRequestHandler.lambda$getOperationMetadata$3(MetadataRequestHandler.java:206) at com.mulesoft.agent.util.ResponseHelper.response(ResponseHelper.java:88) at com.mulesoft.agent.external.handlers.metadata.MetadataRequestHandler.getOperationMetadata(MetadataRequestHandler.java:204) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory.lambda$static$0(ResourceMethodInvocationHandlerFactory.java:52) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:134) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:177) at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:176) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:81) at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:478) at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:400) at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:81) at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:256) at org.glassfish.jersey.internal.Errors$1.call(Errors.java:248) at org.glassfish.jersey.internal.Errors$1.call(Errors.java:244) at org.glassfish.jersey.internal.Errors.process(Errors.java:292) at org.glassfish.jersey.internal.Errors.process(Errors.java:274) at org.glassfish.jersey.internal.Errors.process(Errors.java:244) at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:265) at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:235) at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:684) at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:394) at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:346) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:358) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:311) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:205) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799) at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1656) at com.mulesoft.agent.rest.RequestLoggingFilter.doFilter(RequestLoggingFilter.java:95) at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193) at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1626) at com.mulesoft.agent.rest.AuthorizationFilter.doFilter(AuthorizationFilter.java:49) at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193) at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1626) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:552) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1440) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:505) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1355) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) at org.eclipse.jetty.server.Server.handle(Server.java:516) at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:487) at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:732) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:479) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131) at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:409) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883) at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034) at java.lang.Thread.run(Thread.java:750) Caused by: java.lang.IllegalArgumentException: Required parameter 'operation' was assigned with value '#[vars.operation]' which resolved to null. Required parameters need to be assigned with non null values at org.mule.runtime.module.extension.internal.runtime.resolver.RequiredParameterValueResolverWrapper.resolve(RequiredParameterValueResolverWrapper.java:67) at org.mule.runtime.module.extension.internal.runtime.LazyExecutionContext.lambda$lazy$1(LazyExecutionContext.java:61) at org.mule.runtime.core.api.util.func.CheckedSupplier.get(CheckedSupplier.java:25) at org.mule.runtime.api.util.LazyValue.get(LazyValue.java:75) at org.mule.runtime.module.extension.internal.runtime.LazyExecutionContext.getParameter(LazyExecutionContext.java:78) at org.mule.runtime.module.extension.internal.runtime.operation.OperationParameterValueResolver.lambda$getParameterValue$1(OperationParameterValueResolver.java:95) at java.util.Optional.orElseGet(Optional.java:267) at org.mule.runtime.module.extension.internal.runtime.operation.OperationParameterValueResolver.getParameterValue(OperationParameterValueResolver.java:78) ... 81 more 经过一些测试,我认为问题可能出在这部分:(“ns0#”++ vars.operation):因为从邮递员那里我得到这个错误: 使用操作 [Subtract] 时出错,请求正文不是有效的 XML 我怀疑因为变量是用 JSON 负载中的值设置的,所以它可能会让 Mule 感到困惑。该图显示变量 operation 是一个 JSON。尝试将其指定为 Java 输出以从字符串中删除 JSON 格式: <set-variable value="#[output application/java --- payload.operation]" doc:name="Set Variable" doc:id="5c4da028-7ae8-43e6-ac35-84de6c3b4666" variableName="operation" />

回答 1 投票 0

Mule 4 中 dataweave 代码的条件逻辑

我需要有关 dataweave 代码的帮助。我的要求是根据以下条件在响应中添加状态字段。 var manditory_field="D6V_Cod,D6V,DYR_Cod,DYR" 如果有任何强制性...

回答 1 投票 0

将字符串转换为仅包含数值的数组

我有下面的 dataweave 代码(可能不是最好的)来检查数组是否包含任何非数字元素。它还检查数组中的项目数。 %dw 2.0 输出json 有趣

回答 1 投票 0

如何使用 Quartz 组件安排服务定期调用文件上传器?

这是我上一个问题How to upload multiple files via REST over HTTP using Mule?的扩展。要求每周三上午 10 点必须上传文件。因此...

回答 4 投票 0

Anypoint Studio 7.3 中的数据库连接器的 TestConnection 失败

我已安装 Anypoint Studio 7.3 并尝试使用 DB Connector 连接到 Oracle 数据库。我添加了以下依赖项± com.oracle.jdbc <

回答 2 投票 0

Mule - 尝试通过 HTTPS 发送消息时“无法找到请求目标的有效证书路径”

我有一个 Mule 流程(Mule CE 3.4.0、Studio 3.5.0),它正在处理一些 XML 并使用 HTTPS 端点将其发布到 Web 服务,如下所示: 我有一个 Mule 流程(Mule CE 3.4.0、Studio 3.5.0),它正在处理一些 XML 并使用 HTTPS 端点将其发布到 Web 服务,如下所示: <flow> <!-- Process XML --> <https:outbound-endpoint address="https://admin:password@localhost:8081/hello" exchange-pattern="request-response" contentType="text/xml" method="POST" doc:name="HTTP"/> <!-- Evaluate response --> </flow> 在生产中,这将访问由不同平台公开的 Web 服务,但为了在本地进行测试,我创建了一个完全独立的 Mule 应用程序(单独的工作区、项目文件等),它公开了一个 HTTPS 端点来使用消息: <spring:beans> <security:authentication-manager alias="MyManager"> <security:authentication-provider> <security:user-service id="UserService"> <security:user name="admin" password="password" authorities="ROLE_ADMIN"/> </security:user-service> </security:authentication-provider> </security:authentication-manager> </spring:beans> <spring-security:security-manager> <spring-security:delegate-security-provider name="InMemory" delegate-ref="MyManager"/> </spring-security:security-manager> <https:connector name="httpsConnector"> <https:tls-key-store path="test.jks" keyPassword="test1234" storePassword="test1234"/> </https:connector> <flow name="httpTestFlow" doc:name="httpTestFlow"> <https:inbound-endpoint exchange-pattern="one-way" host="localhost" port="8081" doc:name="HTTP" connector-ref="httpsConnector"> <spring-security:http-security-filter realm="mule-realm" securityProviders="InMemory"/> </https:inbound-endpoint> <object-to-string-transformer doc:name="Object to String"/> <logger level="INFO" message="The XML message received is: #[payload]" doc:name="Logger"/> </flow> 当我尝试运行此程序时,我的 Mule 应用程序(发送 XML 的应用程序)中出现以下错误: ******************************************************************************** Message : Failed to route event via endpoint: DefaultOutboundEndpoint{endpointUri=https://admin:<password>@localhost/hello, connector=HttpsConnector { name=connector.https.mule.default lifecycle=start this=7cc4f42c numberOfConcurrentTransactedReceivers=4 createMultipleTransactedReceivers=true connected=true supportedProtocols=[https] serviceOverrides=<none> } , name='endpoint.https.localhost.8081.hello', mep=REQUEST_RESPONSE, properties={http.method=POST, Content-Type=text/xml}, transactionConfig=Transaction{factory=null, action=INDIFFERENT, timeout=0}, deleteUnacceptedMessages=false, initialState=started, responseTimeout=10000, endpointEncoding=UTF-8, disableTransportTransformer=false}. Message payload is of type: PostMethod Code : MULE_ERROR--2 -------------------------------------------------------------------------------- Exception stack is: 1. unable to find valid certification path to requested target (sun.security.provider.certpath.SunCertPathBuilderException) sun.security.provider.certpath.SunCertPathBuilder:196 (null) 2. PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target (sun.security.validator.ValidatorException) sun.security.validator.PKIXValidator:385 (null) 3. sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target (javax.net.ssl.SSLHandshakeException) sun.security.ssl.Alerts:192 (http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/net/ssl/SSLHandshakeException.html) 4. Failed to route event via endpoint: DefaultOutboundEndpoint{endpointUri=https://admin:<password>@localhost/hello, connector=HttpsConnector { name=connector.https.mule.default lifecycle=start this=7cc4f42c numberOfConcurrentTransactedReceivers=4 createMultipleTransactedReceivers=true connected=true supportedProtocols=[https] serviceOverrides=<none> } , name='endpoint.https.localhost.8081.hello', mep=REQUEST_RESPONSE, properties={http.method=POST, Content-Type=text/xml}, transactionConfig=Transaction{factory=null, action=INDIFFERENT, timeout=0}, deleteUnacceptedMessages=false, initialState=started, responseTimeout=10000, endpointEncoding=UTF-8, disableTransportTransformer=false}. Message payload is of type: PostMethod (org.mule.api.transport.DispatchException) org.mule.transport.http.HttpClientMessageDispatcher:155 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/transport/DispatchException.html) -------------------------------------------------------------------------------- Root Exception stack trace: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:196) at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:268) at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:380) + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything) ******************************************************************************** 我的其他应用程序收到消息时出现此错误: ERROR 2014-06-05 15:58:05,380 [[test-webservice].http.request.dispatch.8081.01] org.mule.exception.DefaultSystemExceptionStrategy: Caught exception in Exception Strategy: Received fatal alert: certificate_unknown javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_unknown at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174) at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:136) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1822) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1004) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1188) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:818) at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75) at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:50) at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78) at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106) at org.mule.transport.http.HttpServerConnection.readLine(HttpServerConnection.java:243) at org.mule.transport.http.HttpServerConnection.getRequestLine(HttpServerConnection.java:509) at org.mule.transport.http.HttpRequestDispatcherWork.run(HttpRequestDispatcherWork.java:70) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:695) 任何人都可以确定这里可能出了什么问题,或者建议一种在本地测试我的出站端点的替代方法吗?预先感谢。 您确定您的单独应用程序实际上正在运行吗?看起来好像不是:也许它只是无法启动? 任何人都可以解决这个问题吗?请 消息:资源“https://transaction-sapi1.us-e2.cloudhub.io:443/api/members/transactions”上的 HTTP POST 失败:PKIX 路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:无法找到请求目标的有效认证路径。 元素:(无) 元素 DSL :(无) 错误类型:HTTP:CONNECTIVITY FlowStack:(无) (为所有内容设置调试级别日志记录或“-Dmule.verbose.exceptions=true”)

回答 2 投票 0

忽略 dwl 1.0 mule 3 中无效或空的日期字段

我正在尝试验证输入负载中的日期和日期时间。如果日期或日期时间格式不正确或为空,我必须验证请求并删除该字段。如果格式正确或...

回答 1 投票 0

如何在 mule 4 中将字符串转换为数组和对象

我有一个要求,如果有效负载中存在字符串,我需要将字符串转换为数组或对象,否则以字符串或布尔值形式返回值。 输入- { “ID”: { “EmpId”...

回答 1 投票 0

Dataweave 转换器中的编码为 UTF-8?

在 dataweave 转换器中,即使将输出编码设置为“UTF-8”也是如此。汉字正在发生变化。 您能否帮助建议如何为 dataweave 设置编码 UTF-8

回答 2 投票 0

如何在dataweave中将base64转换为xml?

我正在尝试将以下有效负载转换为 xml,但遇到错误。 “中继状态”:“/”, “SAML请求”:“

回答 1 投票 0

我如何知道使用anypoint平台调用部署在CloudHub中的api所需的url? (MuleSoft)

我想向cloudhub中部署的另一个api发出请求,但我不知道如何调用它,因为我不知道url在哪里,是否可以进入任何点平台?

回答 2 投票 0

获取 XML 负载大小(以 MB 为单位)

我需要检查 XML 格式的传入有效负载的大小(以 MB 为单位)。如果大小超过特定 MB(例如 50 MB),我需要使用选择路由器来路由流。我在检查时遇到问题...

回答 1 投票 0

我如何知道使用anypoint平台调用Clodhub中的api部署所需的url? (Mulesoft)

我想向cloudhub中部署的另一个api发出请求,但我不知道如何调用它,因为我不知道url在哪里,是否可以进入任何点平台?

回答 1 投票 0

无法向 MuleSoft 生成的 API 代理代码添加额外的流程

我有一个 mulesoft 代理代码,是通过在 CloudHub 中配置 HTTP 代理然后下载生成的。 Anypoint Studio项目有3个mule文件, http-proxy.xml 入站配置.xml 出...

回答 1 投票 0

调试模式下的 Mule 3 - 如何查看 JSON 格式的负载?

所以这个问题是在调试模式(Mule 3)下运行Anypoint Studio 6.x(6.6.10)时特定的 现在,作为实现的一部分,负载或变量多次以格式存储

回答 1 投票 0

如何使用Mule配置身份验证?

基本上它是我上一个问题的扩展:如何读取返回 JSON 对象的 REST 服务并使用 Mule ESB、Mule Studio 将其存储到 PostgreSQL 中 我有一些 REST 服务

回答 1 投票 0

修复 mule 4 中的垃圾收集问题

我们有一个垃圾收集问题,它在高峰时间创建超时问题。 我们的应用程序部署在本地服务器中。 如何解决这个问题。或者请提供任何文章给

回答 0 投票 0

使用 Mulesoft 在 Salesforce Analytics 中创建数据集

我正在尝试使用 mulesoft 在 Salesforce analytics studio 中创建数据集。 但我遇到了错误, 消息:事务:[SaveResult errors='{[1][Error extendedErrorDetails...

回答 0 投票 0

如何设计一个 mulesoft 自定义策略,它可以处理来自“简单基本身份验证”策略的未经授权的错误并提供自定义消息

要求是在 mulesoft 中创建自定义策略,它应该处理来自另一个策略(基本身份验证)的未经授权的错误 有人可以给一个示例代码和去...的方法吗

回答 0 投票 0

DataWeave 2.0如何将xml转成单行?

我需要帮助将输入 XML 转换为单行 XML 输出,即没有空格、没有换行符和没有制表符。 也就是说在一行中显示后面的数据。你能不能...

回答 1 投票 0

© www.soinside.com 2019 - 2024. All rights reserved.