Hi,

I am having a little trouble with cursors. I am able to create, position,
read with, and destroy a cursor without any errors (status.code on all calls
== 0).

However, my readCursorRequest() call returns an empty items list (on a
container that I know is not empty - it's my mailbox folder.)

The XML for the request and response is below:

Request:

<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:gwTrace xmlns:h="http://schemas.novell.com/2005/01/GroupWise/types"
xmlns="falsehttp://schemas.novell.com/2005/01/GroupWise/types">false</h:gwTr
ace ( 'http://schemas.novell.com/2005/01/GroupWise/types" )>
<h:session xmlns:h="http://schemas.novell.com/2005/01/GroupWise/types"
xmlns="7GDv42SfWYw_Kin1http://schemas.novell.com/2005/01/GroupWise/types">7G
Dv42SfWYw_Kin1</h:session (
'http://schemas.novell.com/2005/01/GroupWise/types" )>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<readCursorRequest
xmlns="http://schemas.novell.com/2005/01/GroupWise/methods">
<container>7.CCO.sig.100.0.1.0.1@16</container>
<cursor>-19346064</cursor>
<forward>true</forward>
<count>25</count>
</readCursorRequest>
</s:Body>
</s:Envelope>


Response:

<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<gwTrace xmlns="http://schemas.novell.com/2005/01/GroupWise/types"
xmlns:h="falsehttp://schemas.novell.com/2005/01/GroupWise/types">false</gwTr
ace ( 'http://schemas.novell.com/2005/01/GroupWise/types" )>
</s:Header>
<s:Body xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<readCursorResponse
xmlns:gwt="http://schemas.novell.com/2005/01/GroupWise/types"
xmlns="http://schemas.novell.com/2005/01/GroupWise/methods">
<items/>
<status>
<gwt:code>0</gwt:code>
</status>
</readCursorResponse>
</s:Body>
</s:Envelope>


Any ideas why I would get an empty list back?

One thing that I noticed is that the cursor value is negative. This is what
the POA gave me back when I requested a cursor create:


Request:

<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:gwTrace xmlns:h="http://schemas.novell.com/2005/01/GroupWise/types"
xmlns="http://schemas.novell.com/2005/01/GroupWise/types">false</h:gwTrace>
<h:session xmlns:h="http://schemas.novell.com/2005/01/GroupWise/types"
xmlns="http://schemas.novell.com/2005/01/GroupWise/types">7GDv42SfWYw_Kin1</
h:session>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<createCursorRequest
xmlns="http://schemas.novell.com/2005/01/GroupWise/methods">
<container>7.CCO.sig.100.0.1.0.1@16</container>
</createCursorRequest>
</s:Body>
</s:Envelope>


Response:

<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<gwTrace xmlns="http://schemas.novell.com/2005/01/GroupWise/types"
xmlns:h="http://schemas.novell.com/2005/01/GroupWise/types">false</gwTrace>
</s:Header>
<s:Body xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<createCursorResponse
xmlns:gwt="http://schemas.novell.com/2005/01/GroupWise/types"
xmlns="http://schemas.novell.com/2005/01/GroupWise/methods">
<cursor>-19346064</cursor>
<status>
<gwt:code>0</gwt:code>
</status>
</createCursorResponse>
</s:Body>
</s:Envelope>


I am not sure if this would be a problem or not, but it doesn't appear that
I could do anything about it anyway, as this is the value GW is giving me
back (i.e. no uint -> int conversion is happening on my side - I get a
negative number in the XML.)


Am I doing something wrong?

Thanks.

--sk.