Mule 骡子';泽西岛:资源';元素:绑定不允许是元素组件的子级

Mule 骡子';泽西岛:资源';元素:绑定不允许是元素组件的子级,mule,mule-studio,mule-component,Mule,Mule Studio,Mule Component,根据Mule文档,在使用Mule的“jersey:resources”组件时,我在Anypoint studio中看到以下错误 我理解这种类型的错误是由于没有定义模式造成的。但在本例中,尽管模式已定义,但仍然指出错误为“不允许作为元素组件的子级” 谁能帮我修一下这个吗 Anypoint工作室详细信息: Anypoint Studio 2015年1月发布 版本:5.0.2 构建Id:201502251307 谢谢 --Mohammad Rafiq.绑定元素如下所示: 要注入的接口。将创建一个代

根据Mule文档,在使用Mule的“jersey:resources”组件时,我在Anypoint studio中看到以下错误

我理解这种类型的错误是由于没有定义模式造成的。但在本例中,尽管模式已定义,但仍然指出错误为“不允许作为元素组件的子级”

谁能帮我修一下这个吗

Anypoint工作室详细信息:

Anypoint Studio 2015年1月发布 版本:5.0.2 构建Id:201502251307

谢谢


--Mohammad Rafiq.

绑定元素如下所示:


要注入的接口。将创建一个代理,通过调用端点来实现此接口。
接口上应使用的方法。如果接口只有一个方法,则可以忽略此项。
但您正试图在其中放入
flow ref
元素。这不行。在
TransformationFlow
中添加
vm:inbound端点
,并用连接到
vm:inbound端点的
vm:inbound端点
替换
flow ref


参考资料:

尽管报告了架构错误,它是否仍然有效?Studio有时会报告虚假的模式错误:当您尝试开始时,Mule拥有最终决定权……不,不是。相反,我将异常视为:由以下原因引起:org.xml.sax.saxpasseeption:cvc complex type.2.4.b:元素“binding”的内容不完整。需要一个“{”}”。很酷,错误很明显:绑定元素中缺少一个端点元素。我已将架构定义为xmlns:abstract outbound endpoint=“”,但编译和运行时错误仍然相同。您好,David!但问题的片段实际上来自官方文档()。在我的例子中,我想使用与新http:listener的绑定,我认为将http:listener提取到一个单独的流中并使用流ref引用它是可行的。但是,事实并非如此。对不起,我的意思是http:requestDocs可能已经过时,证据在布丁中:),您可能想为您的特定问题打开一个新的问题。
<xsd:complexType name="pojoBindingType">
    <xsd:sequence>
        <xsd:element ref="abstract-outbound-endpoint" minOccurs="1" maxOccurs="unbounded"/>
    </xsd:sequence>
    <xsd:attribute name="interface" use="required" type="substitutableClass">
        <xsd:annotation>
            <xsd:documentation>
                The interface to be injected. A proxy will be created that implements this interface by calling out to the endpoint.
            </xsd:documentation>
        </xsd:annotation>
    </xsd:attribute>
    <xsd:attribute name="method" use="optional">
        <xsd:annotation>
            <xsd:documentation>
                The method on the interface that should be used. This can be omitted if the interface has a single method.
            </xsd:documentation>
        </xsd:annotation>
    </xsd:attribute>
</xsd:complexType>