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 07-23-2007, 06:51 AM
Starter Member
 
Posts: 2
Default Retrieve e-mail messages via soap

I have been trying to integrate Zimbra into our portal using SOAP. I was would like to grab the first 10 e-mail messages using the API that you have set up. However, I am not having any luck in making a successful call. I've looked through the soap.txt documentation for two days now, but still am not getting any success. The error that I am getting reads:

soap:Senderno valid authtoken present

My system administrator has sent me an authtoken - but it doesn't seem to be valid. Does this authtoken expire?

I attached my sample code to this thread.

Am I missing an important step? Any advise would be greatly appreciated! I am starting to panic since I've spent two days on this and have nothing to show my boss.
Attached Files
File Type: txt codesample.txt (1.2 KB, 120 views)
Reply With Quote
  #2 (permalink)  
Old 07-23-2007, 07:49 AM
Zimbra Employee
 
Posts: 1,434
Default

Auth tokens expire, usually in 24 hours. Try sending an AuthRequest to get a current auth token. (Also, why is the auth token being stored in a variable called "cosid"?) Also, surrounding your auth token with '. and .' will render it invalid.

You also probably don't want SearchConvRequest, as that searches within a single conversation. Use SearchRequest instead.

Also, why do you have an <e> element inside a SearchConvRequest?
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #3 (permalink)  
Old 07-23-2007, 01:19 PM
Starter Member
 
Posts: 2
Default Making Progress

Thank you very much! You definitely pointed me in the right direction. I didn't know that it was possible to retrieve e-mail messages without authenticating as the administrator. The user account info (username and password) works just fine for this task.

I'll post my final code for retrieving e-mail messages as soon as it is finished.
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.