【问题标题】:Zimbra SOAP SearchRequest returns unknown document errorZimbra SOAP SearchRequest 返回未知文档错误
【发布时间】:2012-11-03 16:18:41
【问题描述】:

我正在尝试发送SearchRequest 以在邮箱中找到我需要的东西。但是,我不断收到unknown Document 错误。

POST /service/soap HTTP/1.1
SOAPAction: ""
Content-Type: text/xml;charset="utf-8"
Accept: text/xml
Host: 192.168.138.133
Content-Length: 514
Expect: 100-continue

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
  <soap:Header>
    <authToken>%token acquired from AuthRequest%</authToken>
    <context xmlns="urn:zimbra" />
  </soap:Header>
  <soap:Body>
    <SearchRequest xlmns="urn:zimbraMail">
      <query>is:unread</query>
    </SearchRequest>
  </soap:Body>
</soap:Envelope>

在我看来,我指定了错误的xmlns,但the zimbra soap api reference 说命名空间应该是zimbraMail。我仍然不断收到错误。

【问题讨论】:

  • 你解决了吗?

标签: soap zimbra


【解决方案1】:

标题中的某处不应该有一个会话吗? (在上下文中)

http://dropcanvas.com/521xc/91

【讨论】:

  • 当我发送AuthRequest 时,它不会向我返回任何会话。只有authToken
【解决方案2】:

试试

<soap:Header>
    <context xmlns="urn:zimbra" >
          <authToken>%token acquired from AuthRequest%</authToken>
    </context>
  </soap:Header>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-03-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多