Results 1 to 3 of 3

Thread: Retrieve e-mail messages via soap

Hybrid View

  1. #1
    Join Date
    Jul 2007
    Rep Power

    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 Attached Files

  2. #2
    Join Date
    Aug 2005
    Rep Power


    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!

  3. #3
    Join Date
    Jul 2007
    Rep Power

    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.

Similar Threads

  1. Problems with port 25
    By yogiman in forum Installation
    Replies: 57
    Last Post: 06-13-2011, 01:55 PM
  2. Replies: 7
    Last Post: 02-03-2011, 06:01 AM
  3. fresh install down may be due to tomcat
    By gon in forum Installation
    Replies: 10
    Last Post: 07-25-2007, 08:09 AM
  4. DynDNS and Zimbra
    By afterwego in forum Installation
    Replies: 30
    Last Post: 04-01-2007, 03:34 PM
  5. receiveing mail
    By maybethistime in forum Administrators
    Replies: 15
    Last Post: 12-09-2005, 03:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts