Results 1 to 3 of 3

Thread: Zimbra SOAP not returning sessionId

  1. #1
    Join Date
    Nov 2010
    Posts
    2
    Rep Power
    4

    Default Zimbra SOAP not returning sessionId

    Hello,

    I have browsed the forums for a solution on Zimbra not returning a <sessionId>. I am aware you have to pass the <session/> tag to retrieve a session but still am not able to get one.

    This is the SOAP request and response:

    Request:

    POST https://192.168.0.1:7071/service/admin/soap
    SOAPAction: "https://192.168.0.1:7071/service/admin/soapAuthRequest"
    Content-length: 397
    Content-type: text/xml; charset="UTF-8"

    <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soap="urn:zimbraAccount" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Headers><context xmlns="urn:zimbra"><session/></context></soapenv:Headers>
    <soapenv:Body>
    <soap:AuthRequest>
    <account by="name">user.name</account><password>mypassword</password></soap:AuthRequest>
    </soapenv:Body>
    </soapenv:Envelope>


    Response:

    date: Wed, 17 Nov 2010 08:00:17 GMT
    status: 200
    content-length: 536
    content-type: text/xml; charset=utf-8
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><context xmlns="urn:zimbra"><change token="2249"/></context></soap:Header><soap:Body><AuthResponse xmlns="urn:zimbraAccount"><authToken>0_b97b4d7c2a8 62da28060c1f06a6ae58b24a10529_69643d33363a33346132 383637352d616561372d343530372d623939652d6362383833 353763343336383b6578703d31333a31323931313930343137 3936383b76763d313a353b747970653d363a7a696d6272613c </authToken><lifetime>1209600000</lifetime><skin>yahoo</skin></AuthResponse></soap:Body></soap:Envelope>


    What i am able to do is authenticate as you can see in the response. I am also able to change the password via the following SOAP call:

    POST https://192.168.0.1:7071/service/admin/soap
    SOAPAction: "https://192.168.0.1:7071/service/admin/soapChangePasswordRequest"
    Content-length: 460
    Content-type: text/xml; charset="UTF-8"

    <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soap="urn:zimbraAccount" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Headers><context xmlns="urn:zimbraAccount"><session/></context></soapenv:Headers>
    <soapenv:Body>
    <soap:ChangePasswordRequest>
    <account by="name">user.name</account><oldPassword>oldpassword</oldPassword><password>newpassword</password></soap:ChangePasswordRequest>
    </soapenv:Body>
    </soapenv:Envelope>

    I need (do i?) the session id to create calendar appointments via SOAP calls. Now when retrieving only the authtoken and passing it to the createappointment call give me this:

    <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soap="urn:zimbraMail" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Headers/>
    <soapenv:Body>
    <soap:CreateAppointmentRequest>
    <m d="1289988536" flags="u">
    <e a="email@email.com"/>
    <inv allday="0" fb="B" method="REQUEST" name="test" status="CONF" transp="O" type="event">
    <s d="20101117T020000"/>
    <e d="20101117T023000"/>
    <at a="email@email.com" ptst="NE" role="REQ" rsvp="1"/>
    <or a="email@email.com"/>
    </inv>
    </m></soap:CreateAppointmentRequest>
    </soapenv:Body>
    </soapenv:Envelope>




    service.AUTH_REQUIRED
    no valid authtoken present

    Which leads me to believe i need to pass the sessionId too but i dont have one. Or is something wrong with the namespace of the CreateAppointmentRequest? The documentation doesnt clearly point out what it should be.

    Anyone willing to help me? Thank you.

    Nigel

  2. #2
    Join Date
    Sep 2009
    Posts
    7
    Rep Power
    6

    Default

    Zimbra 6.0 does not appear to return a Session ID by default.

  3. #3
    Join Date
    Nov 2010
    Posts
    2
    Rep Power
    4

    Default

    I know Zimbra 6 doenst return an session id by default. Thats why its neccesary to send the <session/> tag in the header. Which i did, but im still not able to retrieve an ID.

Similar Threads

  1. Cleanup after many upgrades
    By tobru in forum Installation
    Replies: 1
    Last Post: 12-23-2007, 08:21 AM
  2. [SOLVED] Error Installing Zimbra on RHEL 5
    By harris7139 in forum Installation
    Replies: 10
    Last Post: 09-25-2007, 11:39 AM
  3. Zimbra shutdowns every n hours.
    By Andrewb in forum Administrators
    Replies: 13
    Last Post: 08-14-2007, 08:55 AM
  4. svn version still won't start
    By kinaole in forum Developers
    Replies: 0
    Last Post: 10-04-2006, 06:47 AM
  5. Fedora Core 3, Clean Install - Not working!
    By pcjackson in forum Installation
    Replies: 17
    Last Post: 03-05-2006, 06:38 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
  •