Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Nee a head start with IMAP client to access Zimbra mails

  1. #11
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    Default soap.txt

    http://zimbra.svn.sourceforge.net/vi...raServer/docs/

    Look at soap.txt, with a special focus on SearchRequest and GetMsgRequest.

    No WSDL is available at present.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  2. #12
    Join Date
    Nov 2006
    Location
    NOIDA, India
    Posts
    13
    Rep Power
    9

    Default RE: soap.txt (dkarp: please help!)

    Hi Dan
    As u suggested, I followed SOAP.txt
    When I sent:
    <

    soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
    <soap:Header>
    <context xmlns="urn:zimbra">
    <nosession />
    <nonotify />
    <noqualify />
    </context>
    </soap:Header>
    <soap:Body>
    <AuthRequest xmlns="urn:zimbraAccount">
    <account by="name">abhishek</account>
    <password>test1234</password>
    </AuthRequest>
    </soap:Body>
    </soap:Envelope>

    I recieved this:
    <


    soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
    <soap:Body>
    <AuthResponse xmlns="urn:zimbraAccount">
    <authToken>
    0_5c8727cb667027691b80cc09f03d7e9c4080bcd3_69643d3 3363a37373166366165642d616533322d343864652d6166323 22d3137363862353034333436313b6578703d31333a3131363 53437363433333631353b
    </authToken>
    <lifetime>172800000</lifetime>
    </AuthResponse>
    </soap:Body>
    </


    soap:Envelope>
    That is understandable. Now, as per the SOAP.txt doc, I tried sending the SearchRequest to retrieve the mails from Zimbra server.
    I tried compiling different requests, but wasn't successful in retrieving the mails.

    REQUEST
    <


    soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
    <soap:Header>
    <context xmlns="urn:zimbra">
    <authToken>
    0_5c8727cb667027691b80cc09f03d7e9c4080bcd3_69643d3 3363a37373166366165642d616533322d343864652d6166323 22d3137363862353034333436313b6578703d31333a3131363 53437363433333631353b
    </authToken>
    </context>
    </soap:Header>
    <soap:Body>
    <SearchRequest xmlns="urn:zimbraMail">
    <query>is:read</query>
    </SearchRequest>
    </soap:Body>
    </soap:Envelope>


    RESPONSE
    Exception in thread "main"


    java.io.IOException: Server returned HTTP response code: 500 for URL: http://192.168.1.51/service/soap/


    HttpURLConnection.java:1133)
    at com.apnatek.webservices.SOAP.SOAPClient4XG.main(


    SOAPClient4XG.java:85)

    I then tried to put the request within BatchRequest :
    <

    soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
    <soap:Header>
    <context xmlns="urn:zimbra">
    <authToken>
    0_5c8727cb667027691b80cc09f03d7e9c4080bcd3_69643d3 3363a37373166366165642d616533322d343864652d6166323 22d3137363862353034333436313b6578703d31333a3131363 53437363433333631353b
    </authToken>
    </context>
    </soap:Header>
    <soap:Body>
    <BatchRequest xmlns="urn:zimbra" onerror="continue">
    <SearchRequest xmlns="urn:zimbraMail">
    <query>is:read</query>
    </SearchRequest>
    </BatchRequest>
    </soap:Body>
    </soap:Envelope>

    I got the following RESPONSE

    <


    soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
    <soap:Body>
    <BatchResponse xmlns="urn:zimbra">
    <soap:Fault>
    <soap:Code>
    <soap:Value>soap:Sender</soap:Value>
    </soap:Code>
    <soap:Reason>
    <soap:Text>no valid authtoken present</soap:Text>
    </soap:Reason>
    <soapetail>
    <Error>
    <Code>service.AUTH_REQUIRED</Code>
    <Trace>
    com.zimbra.cs.service.ServiceException: no
    valid authtoken present at
    com.zimbra.cs.service.ServiceException.AUTH_REQUIR ED(ServiceException.java:212)
    at
    com.zimbra.soap.SoapEngine.dispatchRequest(SoapEng ine.java:231)
    ...
    </Trace>
    </Error>
    </soapetail>
    </soap:Fault>
    </BatchResponse>
    </soap:Body>
    </


    soap:Envelope>

    I also tried different combinations of <nosession />, gave <sessionId> ... but to no good.

    Please suggest what should be the structure of the request.
    Diamond is a piece of coal that performed well under pressure

  3. #13
    Join Date
    Nov 2006
    Location
    NOIDA, India
    Posts
    13
    Rep Power
    9

    Default RE: soap.txt (dkarp: please help!) ctd...

    Hi Dan

    This is in continuation with my above post. I know its a bit lengthy, but I needed to post that to explain my exact issue, and what all I have tried already. I also tried looking at the packets in debug window using ?debug=3 but although the debug window pops up, nothing is printed on that window

    Please advise (looking at the SOAP packets in my above post), where am I going wrong.

    thanks and regards
    Abhishek
    Diamond is a piece of coal that performed well under pressure

  4. #14
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    Default Try the debug window again

    Quote Originally Posted by abhishek_agl View Post
    I also tried looking at the packets in debug window using ?debug=3 but although the debug window pops up, nothing is printed on that window
    That's no longer enough to get the debug window to work. Please see this posting for the correct syntax.

    Quote Originally Posted by abhishek_agl View Post
    Please advise (looking at the SOAP packets in my above post), where am I going wrong.
    Sorry, but I can't hand-debug everyone's SOAP issues. I really just don't have the time.

    Please look at the debug window output or -- a far, far better option -- use the free SoapProvisioning and zclient Java interfaces that we provide you with the Zimbra source. They encapsulate the SOAP so you don't have to worry about the wire protocol.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  5. #15
    Join Date
    Nov 2006
    Location
    NOIDA, India
    Posts
    13
    Rep Power
    9

    Default Thanks Dan

    Hi Dan

    Thanks so much for all the help and inputs provided.

    I used ?mode=mjsf&gzip=false&debug=1 and that brought up the pop up log window. It actually was a good thing to look at. Pt provided the missing link.

    Thanks
    Diamond is a piece of coal that performed well under pressure

Similar Threads

  1. Removing hostname from hosts file fixed prob.
    By lemur in forum Installation
    Replies: 10
    Last Post: 06-13-2007, 07:29 PM
  2. huge log size
    By rmvg in forum Administrators
    Replies: 5
    Last Post: 01-02-2007, 10:39 AM
  3. Zimbra server crashed
    By goetzi in forum Administrators
    Replies: 6
    Last Post: 03-25-2006, 01:00 PM
  4. Monitoring : Data not yet avalaible
    By s3nz3x in forum Installation
    Replies: 7
    Last Post: 11-30-2005, 07:18 PM
  5. FC3 Install and no zimbra ?
    By aws in forum Installation
    Replies: 10
    Last Post: 10-09-2005, 05:19 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
  •