【问题标题】:Can't get mule IMAP working无法让骡子 IMAP 工作
【发布时间】:2015-11-03 08:13:41
【问题描述】:

我有以下流程,但它不起作用:

<flow name="flows1Flow1" >
    <imap:inbound-endpoint host="mail.example.com" port="143" user="helpdesk%40example.com" password="password" responseTimeout="10000" doc:name="IMAP"/>

我收到错误消息:

来自 URL [文件的 XML 文档中的第 13 行 :/C:Path/workspace/.mule/apps/imap-test/imap-test.xml] 无效;嵌套异常是 org.xml.sa x.SAXParseException: cvc-complex-type.2.4.a: 发现从元素“imap:inbound-endpoint”开始的无效内容。

这么简单的流程,会出现什么问题?

【问题讨论】:

    标签: mule imap


    【解决方案1】:

    您应该在根元素中包含命名空间:

    xmlns:imap="http://www.mulesoft.org/schema/mule/imap"
    xsi:schemaLocation="... http://www.mulesoft.org/schema/mule/imap http://www.mulesoft.org/schema/mule/imap/current/mule-imap.xsd">
    

    你应该确保你确实依赖于mule-transport-email

    【讨论】:

    • 太棒了!谢谢!现在我开始跑步了! /克拉斯
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-02-05
    • 1970-01-01
    • 2020-02-23
    相关资源
    最近更新 更多