Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-25-2008, 04:10 PM
New Member
 
Posts: 4
Smile Unable to get all emails of Zimbra User

Hi,

I am trying to get all emails for a user using SOAP APIs but I get a http 500 error. Can somebody please look and tell me if I am doing something wrong or atleast point me in the direction that I can looking to debug this? Here is the SOAP call I am making

wout.write("<?xml version='1.0' encoding='windows-1250'?>");
wout.write("<soap:Envelope xmlns:soap='http://www.w3.org/2003/05/soap-envelope'>");
wout.write("<soap:Header>");
wout.write("context xmlns='urn:zimbra'>");
wout.write("<userAgent xmlns='' name='ZimbraWebClient - IE7 (Win)'/>");
wout.write("<sessionid xmlns='' id='111..' />");
wout.write("<change xmlns='' token='20..' type='new'/>");
wout.write("<authToken xmlns=''>0_787...</authToken>");
wout.write("</context>");
wout.write("</soap:Header>");
wout.write("<soap:Body>");
wout.write("<SearchRequest xmlns='urn:zimbraMail' sortBy='dataDesc' offset='0' limit='0' types='conversation'>");
wout.write("<tz xmlns='' id='(GMT-08.00) Pacific Time (US &amp; Canada)'/>");
wout.write("<locale xmlns=''>en_US</locale>");
wout.write("<query xmlns=''>in:inbox</query>");
wout.write("</SearchRequest>");
wout.write("</soap:Body>");
wout.write("</soap:Envelope>");

Thanks
Avi
Reply With Quote
  #2 (permalink)  
Old 10-08-2008, 11:58 AM
New Member
 
Posts: 4
Default Re: Unable to get all emails of Zimbra User

Could anybody respond to this? If you need more info please me know
Reply With Quote
  #3 (permalink)  
Old 10-08-2008, 12:02 PM
Intermediate Member
 
Posts: 15
Default

Something like:

<SearchRequest xmlns="urn:zimbraAdmin"
types = "message"
domain = ""
>
<query>in:inbox</query>
</SearchRequest>

Does the trick.
Reply With Quote
  #4 (permalink)  
Old 10-08-2008, 12:39 PM
Zimbra Employee
 
Posts: 1,434
Default

Quote:
Originally Posted by avinashp22 View Post
wout.write("context xmlns='urn:zimbra'>");
Missing an open angle-bracket there.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.