|
|
1
5
首先,请记住XML和JSON结构不是1:1兼容的。
这个
在您的示例中,JSON根对象的第一个元素被用作XML文档的根。您可以通过用假根对象包装输入JSON来解决此问题: {
"root": {
"site": "mysite",
"erpCustno": "123",
"shipToState": "PA",
"shipToZip": "16684",
"lineInfo": [
{
"lineNumber": "10",
"product": "MAT203"
}
]
}
}
但您可能仍然存在
|
|
|
2
0
正如david所说,它需要一个格式正确的json,mule可以完美地转换它。我已经分享了流程细节。 流
http://www.springframework.org/schema/beans/spring-beans-current.xsd 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/json http://www.mulesoft.org/schema/mule/json/current/mule-json.xsd http://www.mulesoft.org/schema/mule/jms http://www.mulesoft.org/schema/mule/jms/current/mule-jms.xsd http://www.mulesoft.org/schema/mule/file http://www.mulesoft.org/schema/mule/file/current/mule-file.xsd “> 输入
} 输出
|
|
|
user123 · Mulesoft中带SSL的WebMQ 8 年前 |
|
|
Naveen Rayappa · MUnit测试用例中的Mule请求者 8 年前 |
|
|
English learner · Mule ESB如何管理多个项目? 8 年前 |
|
|
Vikram Saini · mulesoft中未捕获异常 9 年前 |
|
|
star · 如何在通配符过滤器和表达式过滤器Mule中使用flowVars 10 年前 |
|
|
user3483129 · 检查mule中的json键或对象属性 11 年前 |
|
|
somaniA · Mule SFTP:如何在远程位置创建目录 11 年前 |