executeDSQueryContinuation returns http status 400

Sep 7, 2010 at 7:53 PM

I'm using executeDSQueryContinuation with the continuation object that was returned by DataServiceQuery. It should be pretty straightforward, but the call generates an http 400 status code and no objects are returned. The response xml includes this message:

Request version '1.0' is not supported for the request payload. The only supported version is '2.0'.

Am I doing something wrong? I'm essentially making this sequence of calls.

    DataServiceQuery* theQuery = [[[DataServiceQuery alloc] initWithUri:queryString objectContext:theContext] autorelease];

    QueryOperationResponse* response = [query execute];

    DataServiceQueryContinuation* continuation = [response getContinuation:nil];

    QueryOperationResponse* response = [databaseContext executeDSQueryContinuation:continuation];

    NSArray* objects = [response getResult];

The results from executeDSQueryContinuation contains an empty array. Along the way, the status code 400 was encountered.

Oct 13, 2010 at 10:23 PM

it seems the OData Service is using the V1.0 version of the protocol. Server-Side paging was introduced with the V2.0.