Results 1 to 3 of 3

Thread: Retrieve e-mail messages via soap

  1. #1
    Join Date
    Jul 2007
    Posts
    2
    Rep Power
    8

    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
    Posts
    1,433
    Rep Power
    12

    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!

  3. #3
    Join Date
    Jul 2007
    Posts
    2
    Rep Power
    8

    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, 02:55 PM
  2. Replies: 7
    Last Post: 02-03-2011, 07:01 AM
  3. fresh install down may be due to tomcat
    By gon in forum Installation
    Replies: 10
    Last Post: 07-25-2007, 09:09 AM
  4. DynDNS and Zimbra
    By afterwego in forum Installation
    Replies: 30
    Last Post: 04-01-2007, 04:34 PM
  5. receiveing mail
    By maybethistime in forum Administrators
    Replies: 15
    Last Post: 12-09-2005, 04: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
  •