0

我正在尝试发送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指定的错误,但zimbra soap api 参考说命名空间应该是zimbraMail. 我仍然不断收到错误。

4

2 回答 2

0

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

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

于 2012-11-04T10:30:11.697 回答
0

尝试

<soap:Header>
    <context xmlns="urn:zimbra" >
          <authToken>%token acquired from AuthRequest%</authToken>
    </context>
  </soap:Header>
于 2015-10-20T15:55:38.563 回答