featurelayer query issues?

Discussion created by lynnew82 on Sep 3, 2011
Latest reply on Sep 4, 2011 by njarecha-esristaff
   I am trying to do relationship query with a featurelayer,but I can get any response from the server. Here is the code:
         AGSQuery *query = [AGSQuery query];
        query.geometry = polygon;
        query.returnGeometry = YES;
        query.spatialRelationship = AGSSpatialRelationshipIntersects;
        featurelayer.queryDelegate = self;
        FeaturesQueryOperation = [featurelayer queryFeatures:query];

well,the 'polygon' has been closed; when i used an envelop for query.geometry,the server responses. 
       so what problem it might be?