LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 13-Oct-2009, 03:23 AM
Petr Kureą
NNTP User
 
Posts: n/a
Default problem getting distribution list / group members in GW 8 SP1

Hi,
the code worked in GW 8, but now with SP1 I get the following error:

unexpected element name:
expected={http://schemas.novell.com/2005/01/GroupWise/types}id,
actual={http://schemas.novell.com/2005/01/GroupWise/types}name

I'am calling getItemRequest with the id of distribution list and vie set
to 'id' and 'members' to get the member list.
I thing that problem is in the XML validation, because the response (see
below) doesn't contain id attribute for GroupMember, but the types.xsd
specifies that there must be an id attribute:

--- from types.xsd

<xs:complexType name="GroupMember">
<xs:sequence>
<xs:element ref="tns:id"/>
<xs:element ref="tns:name" minOccurs="0"/>
<xs:element ref="tns:email" minOccurs="0"/>
<xs:element name="distType" type="tns:DistributionType" minOccurs="0"
default="TO"/>
<xs:element name="itemType" type="tns:ContactType" minOccurs="0"
default="Contact"/>
<xs:element name="members" type="tns:GroupMemberList" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
---

What should I do to get the member list ? Is there a new xsd for GW 8
SP1 ? I didn't found one. The newest SDK has types.xsd from 2008 (before
SP1).

Please help! :-)

Petr

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns0="http://schemas.novell.com/2005/01/GroupWise/methods">
<env:Header>
<ans1:session
xmlns:ans1="http://schemas.novell.com/2005/01/GroupWise/types">VNtOPgUaTp8_8wQk</ans1:session>
<ans1:gwTrace
xmlns:ans1="http://schemas.novell.com/2005/01/GroupWise/types">false</ans1:gwTrace>
</env:Header>
<env:Body>
<ns0:getItemRequest>

<ns0:id>CBDD9E00-0602-0000-A00B-F7C713F2D39C@58:GroupWiseSystemAddressBook@52</ns0:id>
<ns0:view>id members</ns0:view>
</ns0:getItemRequest>
</env:Body>
</env:Envelope>

<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header>
<ans1:gwTrace
xmlns:ans1="http://schemas.novell.com/2005/01/GroupWise/types">false</ans1:gwTrace>
</env:Header>
<env:Body>
<gwm:getItemResponse
xmlns:gwm="http://schemas.novell.com/2005/01/GroupWise/methods"
xmlns:gwt="http://schemas.novell.com/2005/01/GroupWise/types">
<gwm:item xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="gwt:Group">

<gwt:id>CBDD9E00-0602-0000-A00B-F7C713F2D39C@58:GroupWiseSystemAddressBook@52</gwt:id>
<gwt:members>
<gwt:member
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="gwt:GroupMember">
<gwt:name>Martin Gondek</gwt:name>
<gwt:email>Martin.Gondek@testdom.com</gwt:email>
<gwt:itemType>Contact</gwt:itemType>
</gwt:member>
<gwt:member
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="gwt:GroupMember">
<gwt:name>Milan Kures</gwt:name>
<gwt:email>Milan.Kures@testdom.com</gwt:email>
<gwt:itemType>Contact</gwt:itemType>
</gwt:member>
</gwt:members>
</gwm:item>
<gwm:status>
<gwt:code>0</gwt:code>
</gwm:status>
</gwm:getItemResponse>
</env:Body>
</env:Envelope>
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 10:44 PM.


© 2007 Novell, Inc. All Rights Reserved.

Search Engine Friendly URLs by vBSEO 3.3.0 RC2