Results 1 to 5 of 5

Thread: [SOLVED] Manage Address Book by SOAP

  1. #1
    jorgelojam is offline Junior Member
    Join Date
    Jun 2007
    Posts
    5
    Rep Power
    8

    Default [SOLVED] Manage Address Book by SOAP

    I would like to know if there are some way to do SOAP request for create contact group into user address book

  2. #2
    jorgelojam is offline Junior Member
    Join Date
    Jun 2007
    Posts
    5
    Rep Power
    8

    Default CreateContactRequest

    I am testing CreateContactRequest, but I would like know if I can request this using admin credentials, but create contact into personal address book of each user

  3. #3
    jorgelojam is offline Junior Member
    Join Date
    Jun 2007
    Posts
    5
    Rep Power
    8

    Default SOAP Message

    <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
    <soap:Header>
    <context xmlns="urn:zimbra">
    <account by="name">pruebas@ups.edu.ec</account>
    <authToken>0_dcac1c27ac2dc5086613b
    </authToken>
    </context>
    </soap:Header>
    <soap:Body>
    <context xmlns="urn:zimbraMail">
    <CreateContactRequest>
    <cn>
    <a n="fileAs">8:Pruebas</a>
    <a n="nickname">Pruebas</a>
    <a n="dlist">""Alberto Galarza Ramos" <agalarza@ups.edu.ec>, "Andrea Molina" <amolina@ups.edu.ec>"</a>
    <a n="type">group</a>
    </cn>
    </CreateContactRequest>
    </context>
    </soap:Body>
    </soap:Envelope>

    But I have error on response

  4. #4
    jorgelojam is offline Junior Member
    Join Date
    Jun 2007
    Posts
    5
    Rep Power
    8

    Default Change SOAP Message

    <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"><soap:Header><context xmlns="urn:zimbra"><account by="name">pruebas@ups.edu.ec</account><authToken>0_9148566536a300b</authToken></context></soap:Header><soap:Body><CreateContactRequest xmlns="urn:zimbraMail"><cn><a n="fileAs">8:Pruebas</a><a n="nickname">Pruebas</a><a n="dlist">""john doe" <foo@bar.com>"</a><a n="type">group</a></cn></CreateContactRequest></soap:Body></soap:Envelope>


    But I have some problem now with ""john doe" <foo@bar.com>" I checked in mailbox.log and get the follow error

    2009-09-16 09:13:25,128 INFO [btpool0-1555] [ip=172.16.2.6;] soap - AuthRequest
    2009-09-16 09:13:25,184 WARN [btpool0-1555] [ip=172.16.2.6;] SoapEngine - SOAP exception
    com.zimbra.common.service.ServiceException: parse error: Error on line 1 of document : Element type "foo" must be followed by either attribute specifications, ">" or "/>". Nested exception: Element type "foo" must be followed by either attribute specifications, ">" or "/>".
    ExceptionId:btpool0-1555:1253110405184:e3d68a1f2382d2bc
    Code:service.PARSE_ERROR

    But when I debug SOAP request from Zimbra Web Client I see that use < > for email john doe" <foo@bar.com>

  5. #5
    jorgelojam is offline Junior Member
    Join Date
    Jun 2007
    Posts
    5
    Rep Power
    8

    Default Modifiy dlist value

    <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"><soap:Header><context xmlns="urn:zimbra"><account by="name">pruebas@ups.edu.ec</account><authToken>0_33b89b13822</authToken></context></soap:Header><soap:Body><CreateContactRequest xmlns="urn:zimbraMail"><cn><a n="fileAs">8:Pruebas</a><a n="nickname">Pruebas</a><a n="dlist">Juan Carlos &lt;oiuyo@eee.com&gt; , Juan Perez &lt;etewr@xde.dot&gt;</a><a n="type">group</a></cn></CreateContactRequest></soap:Body></soap:Envelope>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 35
    Last Post: 07-17-2009, 03:52 PM
  2. zmzimletctl deploy zimbra_posixaccount.zip - ERROR -
    By todd_dsm in forum Administrators
    Replies: 0
    Last Post: 04-02-2009, 01:41 PM
  3. address book sync broken
    By drdrem in forum Error Reports
    Replies: 4
    Last Post: 03-04-2009, 06:55 AM
  4. [SOLVED] Zimbra not syncing properly with Address Book and iCal
    By Colin Day in forum CalDAV / CardDAV / iSync
    Replies: 4
    Last Post: 07-13-2007, 08:52 AM

Posting Permissions

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