Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-03-2010, 07:21 AM
Starter Member
 
Posts: 3
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.
Reply With Quote
  #2 (permalink)  
Old 06-07-2010, 05:55 AM
Starter Member
 
Posts: 3
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..
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.