1

使用此 XML 时

<https:inbound-endpoint exchange-pattern="request-response" host="${sso.ezwim.host}" port="${sso.ezwim.port}" path="${sso.ezwim.path}" doc:name="SSO Entry Point" method="POST" connector-ref="httpsConnector">
    <http:body-to-parameter-map-transformer />
    <response>
        <message-properties-transformer>
            <add-message-property key="Content-Type" value="text/html"/>
        </message-properties-transformer>
    </response>
</https:inbound-endpoint>

我收到以下错误:

发现以元素“https:inbound-endpoint”开头的无效内容。其中之一{"http://www.mulesoft.org/schema/mule/core":abstract-message-processor, "http://www.mulesoft.org/schema/mule/core":abstract-outbound-endpoint, "http://www.mulesoft.org/schema/mule/core":response, "http://www.mulesoft.org/schema/mule/core":abstract-exception-strategy, "http://www.mulesoft.org/schema/mule/core":abstract-message-info-mapping}是预期的。

这个错误是什么意思,我该如何解决?

4

3 回答 3

1

确保类路径上的 mule-transport-http JAR:好像不是。

还要确保命名空间定义与您使用的 Mule 版本兼容。您可能已经为 3.3 版定义了命名空间并且在 3.4 版上。无论如何都最好使用current,如下所示:

xmlns:https="http://www.mulesoft.org/schema/mule/https"

xsi:schemaLocation="http://www.mulesoft.org/schema/mule/https
                    http://www.mulesoft.org/schema/mule/https/current/mule-https.xsd"
于 2013-07-29T15:59:15.900 回答
0

你有没有声明https前缀,像这样:

<mule xmlns:https="http://www.mulesoft.org/schema/mule/https" 

xsi:schemaLocation="http://www.mulesoft.org/schema/mule/https
于 2013-07-29T14:59:39.480 回答
0

也许它是 Eclipse 的默认模式验证设置。

请参阅http://blogs.mulesoft.org/overcoming-xml-validation-errors-in-eclipse-35/

于 2013-07-29T14:34:31.127 回答