无法让骡子 IMAP 工作
Can't get mule IMAP working
我有以下流程,但它不起作用:
<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'.
开头的无效内容
这么简单的流程,哪里会出错?
您应该在根元素中包含命名空间:
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
。
我有以下流程,但它不起作用:
<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'.
开头的无效内容这么简单的流程,哪里会出错?
您应该在根元素中包含命名空间:
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
。