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

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 09-28-2011, 04:01 AM
Intermediate Member
 
Posts: 17
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?)

:-?
Reply With Quote
  #2 (permalink)  
Old 09-28-2011, 07:38 AM
Project Contributor
 
Posts: 92
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?
Reply With Quote
  #3 (permalink)  
Old 09-28-2011, 09:27 AM
Intermediate Member
 
Posts: 17
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.
Reply With Quote
  #4 (permalink)  
Old 09-30-2011, 01:47 AM
Intermediate Member
 
Posts: 17
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.
Reply With Quote
  #5 (permalink)  
Old 09-30-2011, 07:04 AM
Project Contributor
 
Posts: 92
Default

What url do you use?
It should be for Admin UI.
Reply With Quote
  #6 (permalink)  
Old 09-30-2011, 07:17 AM
Intermediate Member
 
Posts: 17
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?
Reply With Quote
  #7 (permalink)  
Old 09-30-2011, 01:28 PM
Project Contributor
 
Posts: 92
Default

There is URL for administrator.

And it is normally
https://<your zimbra store hostname>:7071/zimbraAdmin
Reply With Quote
  #8 (permalink)  
Old 09-30-2011, 01:36 PM
Intermediate Member
 
Posts: 17
Default

Thank you! i'll try that out on Tuesday!
Reply With Quote
  #9 (permalink)  
Old 10-04-2011, 03:37 AM
Intermediate Member
 
Posts: 17
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.
Reply With Quote
  #10 (permalink)  
Old 10-04-2011, 04:38 AM
Project Contributor
 
Posts: 92
Default

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

Quote:
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.
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.