Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: GetDistributionListMembersRequest produces UNKNOWN_DOCUMENT error?

  1. #1
    Join Date
    Sep 2011
    Posts
    17
    Rep Power
    4

    Default GetDistributionListMembersRequest produces UNKNOWN_DOCUMENT error?

    Hi, all!

    i'm trying to submit a GetDistributionListMembersRequest request, but no matter what i feed it i get service.UNKNOWN_DOCUMENT as my response. i'm using Zimbra 7.1.1 and GDLMR is not listed as being deprecated in the docs in have.

    From what i can glean from the sparse documentation, UNKNOWN_DOCUMENT is referring to the GDLMR request itself, as opposed to the mailing list parameter sent via the request.

    Request:

    Code:
    <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
      <soap:Header>
        <context xmlns="urn:zimbra">
          <userAgent name="ConsolZimbraClient" version="0.0.0.1-alphalpha"/>
          <authToken>0_...</authToken>
        </context>
      </soap:Header>
      <soap:Body>
        <GetDistributionListMembersRequest limit="0" offset="0">
          <dl>some-mailing-list@consol.de</dl>
        </GetDistributionListMembersRequest>
      </soap:Body>
    </soap:Envelope>
    Response:

    Code:
    <soap:Fault><soap:Code><soap:Value>soap:Sender</soap:Value></soap:Code><soap:Reason><soap:Text>unknown document: GetDistributionListMembersRequest</soap:Text></soap:Reason><soap:Detail><Error xmlns="urn:zimbra"><Code>service.UNKNOWN_DOCUMENT</Code><Trace>com.zimbra.common.service.ServiceException: unknown document: GetDistributionListMembersRequest
    ExceptionId:btpool0-39953://zimbra.consol.de/service/soap:1317207223221:f982653a0e9f1259
    Code:service.UNKNOWN_DOCUMENT
    	at com.zimbra.common.service.ServiceException.UNKNOWN_DOCUMENT(ServiceException.java:262)
    	at com.zimbra.soap.SoapEngine.dispatchRequest(SoapEngine.java:343)
    	at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.java:287)
    	at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.java:158)
    	at com.zimbra.soap.SoapServlet.doWork(SoapServlet.java:294)
    	at com.zimbra.soap.SoapServlet.doPost(SoapServlet.java:215)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
    	at com.zimbra.cs.servlet.ZimbraServlet.s
    The docs i have for this request type are (in their entirety):

    Code:
    <GetDistributionListMembersRequest [limit="{limit}"] [offset="{offset}"]>
      <dl>{dl-name}</dl>
    </GetDistributionListMembersRequest>
    
    <GetDistributionListMembersResponse more="{more-flag}" [total="{total}"]>
        <dlm>{member email}</dlm>+
    </GetDistributionListMembersResponse>
    
    Notes:
        limit - the number of members to return (0 is default and means all)
        offset - the starting offset (0, 25, etc)
    
        more-flag = true if more members left to return
        total = total number of distribution lists (not affected by limit/offset)
    Any ideas on how i can work around this? (Or is there a different/better way to get the list of members for a given distribution list?)

    :-?

  2. #2
    Join Date
    Oct 2009
    Location
    Tokyo
    Posts
    113
    Rep Power
    6

    Default

    I am not sure what the problem is here.

    But maybe you better add name space attribute/value like xmlns="urn:zimbraAdmin" to GetDistributionListMembersRequest element?

  3. #3
    Join Date
    Sep 2011
    Posts
    17
    Rep Power
    4

    Default

    Thank you for the tip. i incidentally tried that about 30 minutes after my original post (i found the namespace in the whitelist documentation - it is not listed in the soap.txt doc), but the result was the same. Tomorrow i will check with our Zimbra admins to make sure that this particular request type is whitelisted.

  4. #4
    Join Date
    Sep 2011
    Posts
    17
    Rep Power
    4

    Default

    i just found GetDistributionListMembershipRequest and tried it as well, but i get the same response:

    Code:
    ...<GetDistributionListMembershipRequest xmlns="urn:zimbraAdmin">
          <dl by="name">...</dl>
        </GetDistributionListMembershipRequest>...
    Leads to...

    Code:
    <soap:Fault><soap:Code><soap:Value>soap:Sender</soap:Value></soap:Code><soap:Reason><soap:Text>unknown document: GetDistributionListMembershipRequest</soap:Text></soap:Reason><soap:Detail><Error xmlns="urn:zimbra"><Code>service.UNKNOWN_DOCUMENT</Code>...
    i'm stuck.

  5. #5
    Join Date
    Oct 2009
    Location
    Tokyo
    Posts
    113
    Rep Power
    6

    Default

    What url do you use?
    It should be for Admin UI.

  6. #6
    Join Date
    Sep 2011
    Posts
    17
    Rep Power
    4

    Default

    i'm using https://internal-zimbra-server/service/soap. That's the only URL i've seen used by e.g. the AJAX mail client (most of my zimbra understanding comes from snooping that client's AJAX traffic). Is there a separate URL for certain requests?

  7. #7
    Join Date
    Oct 2009
    Location
    Tokyo
    Posts
    113
    Rep Power
    6

    Default

    There is URL for administrator.

    And it is normally
    https://<your zimbra store hostname>:7071/zimbraAdmin

  8. #8
    Join Date
    Sep 2011
    Posts
    17
    Rep Power
    4

    Default

    Thank you! i'll try that out on Tuesday!

  9. #9
    Join Date
    Sep 2011
    Posts
    17
    Rep Power
    4

    Default

    i tried ...:7071/zimbraAdmin as well, but it has two problems:

    a) HTTP 403 returned from our internal proxy server (not necessarily Zimbra-related)

    b) i need a command which is non-admin because arbitrary users will need to be able to see who is/is not in the office. In order to get this information i need to be able to get the members of each internal group so that the in/out-of-office display can be broken down into departments/teams (project requirement).

    If getDLMembers is admin-only then it doesn't matter whether it works or not - i cannot use it for this purpose.

  10. #10
    Join Date
    Oct 2009
    Location
    Tokyo
    Posts
    113
    Rep Power
    6

    Default

    Javascript Code of non admin UI seems to create json request object like below:

    var jsonObj = {GetDistributionListMembersRequest:{_jsns:"urn:zim braAccount", offsetffset, limit:limit}};
    So Could you try "urn:zimbraAccount" name space with URL for non admin AJAX mail client?

    BTW you better update your profile to tell us your ZCS version.

Similar Threads

  1. Replies: 5
    Last Post: 05-11-2012, 02:16 PM
  2. [SOLVED] I broke my server trying to optimize... HELP!
    By myriad in forum Administrators
    Replies: 9
    Last Post: 09-17-2011, 06:46 AM
  3. Replies: 6
    Last Post: 03-14-2011, 04:21 AM
  4. [SOLVED] New zcs 7 install : database errors founds
    By dkbk in forum Administrators
    Replies: 4
    Last Post: 03-01-2011, 05:49 AM
  5. Zimbra fails after working for 2 weeks
    By Linsys in forum Administrators
    Replies: 10
    Last Post: 10-07-2008, 12:42 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
  •