Results 1 to 2 of 2

Thread: [SOLVED] SOAPAdmin : delegateAuth + CreateMountpoint

  1. #1
    Bozel is offline Starter Member
    Join Date
    Jun 2010
    Posts
    3
    Rep Power
    5

    Default [SOLVED] SOAPAdmin : delegateAuth + CreateMountpoint

    Languages : English, Français

    English:

    Hello,
    I am using SOAPAdmin interface to create and administrate users for an university.
    I want to mount a shared folder to a user using SOAP Interface, using admin account.
    I use the "DelegateAuthRequest" to be indetifed as the user, but when I try to post the "CreateMountpointRequest", I reicive the follwing error:
    Reason: unknown document: CreateMountpointRequest
    Error: service.UNKNOWN_DOCUMENT

    I tried to use the https://server:7071/service/admin/soap and the https://server/service/soap url

    I tried the two following request:
    Code:
    <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
       <soap:Header>
          <context xmlns="urn:zimbra">
             <authToken>xxxxxx</authToken>
             <sessionId id="xxxxx">xxxxx</sessionId>
          </context>
       </soap:Header>
       <soap:Body>
          <CreateMountpointRequest>
             <link l="Porte-documents" name="documents" owner="ensag@grenoble.archi.fr" path="/Documents"/>
          </CreateMountpointRequest>
       </soap:Body>
    </soap:Envelope>
    and the same without the "l" attribute for tag "link".

    Could you help me?
    Thanks, Bozel.

    ---------------------------------------------------------------------

    Français :

    Bonjour,
    J'utilise l'interface SOAPAdmin pour créer et administrer des compte pour une université.
    Je souhaite monter un dossier partagé pour un utilisateur via l'interface SOAP avec le compte admin.
    J'ai utiliser un "DelegateAuthRequest" pour être identifié en tant que l'utilisateur pour qui je souhaite monter le dossier, mais quand j'essaye d'utiliser un "CreateMountpointRequest", j'ai le message d'erreur suivant :
    Reason : unknown document: CreateMountpointRequest
    Error : service.UNKNOWN_DOCUMENT

    J'ai essayé les url https://server:7071/service/admin/soap et https://server/service/soap

    j'ai essyer les deux requêtes suivante :
    Code:
    <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
       <soap:Header>
          <context xmlns="urn:zimbra">
             <authToken>xxxxxx</authToken>
             <sessionId id="xxxxx">xxxxx</sessionId>
          </context>
       </soap:Header>
       <soap:Body>
          <CreateMountpointRequest>
             <link l="Porte-documents" name="documents" owner="ensag@grenoble.archi.fr" path="/Documents"/>
          </CreateMountpointRequest>
       </soap:Body>
    </soap:Envelope>
    Et le même requête sans l'attribut "l" de la balise "link".
    Pouvez-vous m'aider?
    Merci d'avance,
    Bozel.

  2. #2
    Bozel is offline Starter Member
    Join Date
    Jun 2010
    Posts
    3
    Rep Power
    5

    Default

    For the one who are interested :
    There were some error in my request :
    The "l" attribute isn't a name but a number (idk how to get it, but the default folder is "16")
    and you must add a xmlns="urn:zimbraMail" after the request :

    <CreateMountpointRequest xmlns="urn:zimbraMail">

    hope it helped you
    Bye

    EDIT:

    God damn, when I hit the "mark as solved", it erase my original post T_T

    So a quick remember of the problem :
    Using the SOAP interface of Zimbra, I wanted to mount a shared folder for a user, but with the admin account.

    I managed to delegate authority, but when I tried to make the "CreateMountpointRequest" I got the error "unknown document: CreateMountpointRequest"

    That's because I made the mistakes listed upper in this post.
    Last edited by Bozel; 06-07-2010 at 06:02 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. createMountpoint syntax
    By elisa in forum Administrators
    Replies: 1
    Last Post: 12-17-2010, 12:08 PM
  2. Logging in using DelegateAuth auth token
    By Cyso in forum Developers
    Replies: 0
    Last Post: 03-23-2010, 07:07 AM
  3. [SOLVED] zmmailbox createmountpoint calendar is not enabled
    By captainmish in forum Administrators
    Replies: 2
    Last Post: 03-12-2009, 03:29 AM
  4. DelegateAuth in audit.log
    By Krishopper in forum Administrators
    Replies: 2
    Last Post: 05-17-2007, 05:08 AM
  5. Problem creatiing accounts via SOAPAdmin
    By rtanner in forum Administrators
    Replies: 8
    Last Post: 04-26-2006, 01:46 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
  •