标签: mule-studio

如何在mule中处理HTTP会话?

我在mule有一些休息服务,我需要在每次通话前进行身份验证.对于那个我打算首先进行登录服务,并且会话检查以后的请求.是正确的方法还是请建议如何在mule中处理HTTP会话?

mule mule-studio mule-el

1
推荐指数
1
解决办法
346
查看次数

Mule - 将一个大的JSON列表拆分为多个较小的JSON列表

我有一个包含大约200个对象的json对象列表.我想将该列表拆分为较小的列表,其中每个列表每个包含最多20个对象.我想将每个子列表POST到基于HTTP的端点.

<flow name="send-to-next-step" doc:name="send-to-vm-flow">
    <vm:inbound-endpoint exchange-pattern="one-way"
        path="send-to-next-step-vm" doc:name="VM" />
    <!-- received the JSON List payload with 200 objects-->
    <!-- TODO do processing here to split the list into sub-lists and call sub-flow for each sub-list
    <flow-ref name="send-to-aggregator-sf" doc:name="Flow Reference" />
</flow>
Run Code Online (Sandbox Code Playgroud)

一种可能的方法是我编写一个迭代列表的java组件,并在迭代每个20个对象之后调用子流.有没有更好的方法来实现这一目标?

mule mule-studio mule-el

1
推荐指数
1
解决办法
2908
查看次数

如何在mule esb中创建网页

我想使用Mule ESB创建JSP页面.

我怎么能创建一个JSP页面?

是否可以使用该JSP页面部署我的Mule应用程序?

当我运行我的Mule应用程序时; 我的前端页面应该被执行(JSP页面).

我怎么能用Mule ESB实现这个呢?

jsp mule mule-studio mule-component

1
推荐指数
1
解决办法
1287
查看次数

如何在Mule ESB中记录HTTP请求的正文(POST)(XML)

您好我正在尝试在Mule ESB中记录POST内容的内容,因为另一端接收除了二进制的ContactId之外的所有内容.我们正在尝试确定错误的位置.这是流程.

<flow name="ContactUpdate">
    <http:inbound-endpoint exchange-pattern="request-response" host="host" port="port" path="ContactUpdate" doc:name="HTTP"/>
    <logger level="INFO" doc:name="Logger" message="#[payload]"/>
    <ws:consumer config-ref="Web_Service_Consumer" operation="UpdateContact" doc:name="UpdateContact"/>
</flow>
Run Code Online (Sandbox Code Playgroud)

在日志中,我只能看到内容的长度和其他信息,但不能看到POST中发送的正文的实际内容.有可能做这样的事吗?

谢谢你的帮助

mule mule-studio

1
推荐指数
1
解决办法
3015
查看次数

建立mavenized MuleStudio项目

我在MuleStudio有一个mavenized Mule项目.当我尝试使用maven打包时,它开始从http://dev.ee.mulesource.com/repository/下载一些EE jar文件...

我的POM.xml中没有EE依赖项.

  1. 为什么maven试图下载这些依赖项?
  2. Maven只是拉pom文件(而不是相关的jar文件).为什么?

    Downloading: http://dev.ee.mulesource.com/repository/content/repositories/releas
    es/com/ibm/icu/icu4j-normalizer_transliterator/4.8.1.1/icu4j-normalizer_translit
    erator-4.8.1.1.pom
    Downloading: http://dev.ee.mulesource.com/repository/content/repositories/snapsh
    ots/com/ibm/icu/icu4j-normalizer_transliterator/4.8.1.1/icu4j-normalizer_transli
    terator-4.8.1.1.pom
    Downloading: http://dev.ee.mulesource.com/repository/content/repositories/ext-re
    leases/com/ibm/icu/icu4j-normalizer_transliterator/4.8.1.1/icu4j-normalizer_tran
    sliterator-4.8.1.1.pom
    Downloading: https://repository-lsi.forge.cloudbees.com/release/com/googlecode/s
    ardine/sardine/248/sardine-248.pom
    Downloading: http://dev.ee.mulesource.com/repository/content/repositories/releas
    es/com/googlecode/sardine/sardine/248/sardine-248.pom
    Downloading: http://dev.ee.mulesource.com/repository/content/repositories/snapsh
    ots/com/googlecode/sardine/sardine/248/sardine-248.pom
    

mule maven mule-studio

0
推荐指数
1
解决办法
1155
查看次数

Junit Test测试Mule Flow中的Http Outbound端点

我有一个基本的Mule ESB应用程序,其基本流程如下:"Http入站端点(请求 - 响应模式) - >记录器 - > HTTP出站端点(请求 - 响应模式) - > Java组件"

查询:如何编写junit测试用例来测试上述流程.可以看出,我有一个HTTP出站端点(请求 - 响应模式),它指的是一些大型应用程序,它执行大量处理然后返回响应.我是否会模拟此HTTP出站端点?我不想单独测试HTTP出站端点(请求 - 响应模式).我想对整个流程进行junit测试.

提前致谢.Jai Shammi Raj Kulkarni

unit-testing esb junit4 mule mule-studio

0
推荐指数
1
解决办法
2565
查看次数

分散收集路由错误.消息有效内容的类型为:String

我是Mule的新手,在Anypoint Studio上处理一个相当简单的Hello World示例来测试Scatter/Gather流控制元素时,我收到了以下错误,没有太多其他信息:

ERROR 2014-12-19 22:00:30,172 [[unifinesb].connector.http.mule.default.receiver.02] org.mule.exception.DefaultMessagingExceptionStrategy: 
********************************************************************************
Message : Exception was found for route(s): 0. Message payload is of type: String
Type : org.mule.routing.CompositeRoutingException
Code : MULE_ERROR--2
JavaDoc : http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/routing/CompositeRoutingException.html
Payload : /Waldo
********************************************************************************
Exception stack is:
1. Exception was found for route(s): 0. Message payload is of type: String (org.mule.routing.CompositeRoutingException)
org.mule.routing.CollectAllAggregationStrategy:51 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/routing/CompositeRoutingException.html)
********************************************************************************
Root Exception stack trace:
org.mule.routing.CompositeRoutingException: Exception was found for route(s): 0. Message payload is of type: String
at org.mule.routing.CollectAllAggregationStrategy.aggregateWithFailedRoutes(CollectAllAggregationStrategy.java:51)
at org.mule.routing.CollectAllAggregationStrategy.aggregate(CollectAllAggregationStrategy.java:38)
at org.mule.routing.ScatterGatherRouter.processResponses(ScatterGatherRouter.java:207)
at …
Run Code Online (Sandbox Code Playgroud)

mule mule-studio

0
推荐指数
1
解决办法
4464
查看次数

如何在响应xml中声明名称空间

我在Data Weaver中做POC.我不确定如何ns0:在整个输出xml中声明命名空间.推荐的链接:https: //developer.mulesoft.com/docs/dataweave(我已经看到了处理带命名空间1.4.3的输入xml的例子,但我正在寻找输出xml).

输入Xml:

    <?xml version="1.0" encoding="UTF-8"?>
    <Records>
      <storenumber>12</storenumber>
      <calculated>false</calculated>
      <subTotal>12</subTotal>
   <Records>
Run Code Online (Sandbox Code Playgroud)

预期输出xml:

<?xml version='1.0' eencoding="UTF-8" standalone="yes"?>
 <ns0:orders 
       xmlns="ns2=urn:test.com:common:v1">
  <ns0:order>
    <ns0:StoreID>12</ns0:StoreID>
    <ns0:Total>false</ns0:Total>
   </ns0:order>
  </ns0:orders>
Run Code Online (Sandbox Code Playgroud)

DataWeaver转换

%dw 1.0
 %output application/xml
 %var baseurl="ns2=urn:test.com:common:v1"
 ---
 orders @(xmlns:baseurl): {
 order: {
  StoreID: payload.Records.storenumber,
  Total: payload.Records.calculated
  }
}
Run Code Online (Sandbox Code Playgroud)

我相信@(xmlns:baseurl)转型是正确的.有没有其他方法来定义它?

mule mule-studio mule-el mule-component dataweave

0
推荐指数
1
解决办法
1697
查看次数

503 服务在 Mule 中不可用

在 Mule 应用程序中调用时,我收到 503 Service Unavailable... 呼叫未到达 HTTP 侦听器我认为,除了 HTTP 侦听器之外,还有设置变量...设置变量也未到达呼叫...直到前天它正在所有工作空间中工作,但是当我在设置调试模式后尝试时突然无法到达侦听器。但是对于其他开发人员来说没有任何问题,他能够接收对 Listener 和其他组件的调用。目前的配置一切都很好。您能否建议需要检查的内容。

java arrays json http mule-studio

0
推荐指数
3
解决办法
1103
查看次数

标签 统计

mule-studio ×9

mule ×8

mule-el ×3

mule-component ×2

arrays ×1

dataweave ×1

esb ×1

http ×1

java ×1

json ×1

jsp ×1

junit4 ×1

maven ×1

unit-testing ×1