Re: readCursorRequest () returns no items
Don't pass "1.03" to a 8.0.0 POA. It won't understand
"1.03" and will revert back to 7.0.0 schema.
Don't use positionCursorRequest or position in
readCursorRequest. The position element in
readCursorRequest has a "default" attribute. The
position element won't be in the XML if the value
is "current".
There are issues with positioning the cursor. For
now, just start from the beginning or the end and
just read in one direction. (You can apply a filter
to reduce the number of items read, but you will
still need to read in one direction.)
If you need more robust cursor reads with positioning
the cursor, it will take us a while to look into it.
Preston
>>> On Thursday, September 03, 2009 at 5:51 PM, Sean
Kirkby<skirkby@armordatasystems.com> wrote:
> I have found that if I set the "position" element to "end" or "start" in
the
> readCursorRequest() call, then the position element is included in the
XML,
> if I set it to "current", then it isn't.
>
> It's as if the code expects the server to default to "current", so if I
> select "current", it just leaves it out (perhaps to be efficient).
>
> I am running 8.0 schema with a version 1.03 login against an 8.0 POA.
>
> Is an empty list what I should expect to see if the "position" element is
> not included in the readCursorRequest() call?
>
> ‑‑sk.
>
>>>> On 9/3/2009 at 4:57 PM, Sean Kirkby<skirkby@armordatasystems.com>
> wrote:
>
> One other thing I noticed is that the request doesn't have a "position"
> element... the class generated from the WSDL has a field for this
property,
> and I am setting it to "CursorSeek.current" (an enum that should equate
to
> "current" in the XML), but that element isn't in the XML when the request
> goes out...
>
> Could this be the reason why I am not getting anything back?
>
> ‑‑sk.
>
>>>> On 9/3/2009 at 4:54 PM, Sean Kirkby<skirkby@armordatasystems.com>
> wrote:
>> 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:gw
>> Tr
>> 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</gw
>> Tr
>> 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_Kin
>> 1</
>> 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.
>>
>>
|