【发布时间】:2018-04-09 13:47:45
【问题描述】:
我在运行 mule 应用程序时遇到此异常。
The prefix "metadata" for attribute "metadata:id" associated with an element type "dw:transform-message" is not bound.
它正在调用数据编织转换。我之前也遇到过类似的错误,只是在通过配置 XML 而不是消息流进行编辑之后。
我发现this post 有关于缺少命名空间的回复。据我所知,我有 dataweave 命名空间
xmlns:file="http://www.mulesoft.org/schema/mule/file"
xmlns:dw="http://www.mulesoft.org/schema/mule/ee/dw"
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:spring="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-current.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/file
http://www.mulesoft.org/schema/mule/file/current/mule-file.xsd
http://www.mulesoft.org/schema/mule/ee/dw
http://www.mulesoft.org/schema/mule/ee/dw/current/dw.xsd
http://www.mulesoft.org/schema/mule/core
http://www.mulesoft.org/schema/mule/core/current/mule.xsd">
我对 mule 很陌生,如果我在命名空间中遗漏了某些东西,或者如果有人看到了这一点,我将不胜感激。 这里也是元数据:id
<dw:transform-message doc:name="json to flattened json" metadata:id="e1e281d5-880f-48f9-92af-b5ead2b0e5dd">
<dw:input-payload mimeType="application/json"/>
【问题讨论】:
-
以下答案是否对您有所帮助。如果是,请接受答案,以便其他面临相同问题的人可以从中受益。
标签: xml mule anypoint-studio dataweave