Note that there are some explanatory texts on larger screens.

plurals
  1. PORKObjectLoaderDelegate methods not called with post:params:delegate:
    primarykey
    data
    text
    <p>I am able to get all the required RKObjectLoaderDelegate methods called when doing a GET with loadObjectsAtResourcePath:delegate:. </p> <p>However, when I am doing a POST with post:params:delegate:, only request:didLoadResponse: gets called. Even methods such as objectLoader:didLoadObjects: and objectLoader:didFailWithError: are not getting called.</p> <p>Here is the code snippet.</p> <pre><code> self.appObjectManager.client = [RKObjectManager managerWithBaseURLString:self.webServiceURLString]; [self.appObjectManager.client setValue:@"application/x-www-form-urlencoded" forHTTPHeaderField:@"Content-Type"]; [self.appObjectManager.client setValue:@"" forHTTPHeaderField:@"Cookie"]; RKObjectMapping* sessionInformationMapping = [RKObjectMapping mappingForClass:[sessionInformation class]]; [sessionInformationMapping mapKeyPath:@"uid" toAttribute:@"userID"]; [self.appObjectManager.mappingProvider setObjectMapping:sessionInformationMapping forKeyPath:@"user"]; NSMutableDictionary *parameters = [NSMutableDictionary dictionaryWithObjects:[NSArray arrayWithObjects:@"abc", @"pwd", nil] forKeys:[NSArray arrayWithObjects:@"username", @"password", nil]]; [self.appObjectManager.client post:resourcePath params:parameters delegate:self]; </code></pre> <p>I found a similar question here, but it doesn't seem to help me. <a href="https://stackoverflow.com/questions/10307649/restkit-what-delegate-method-is-called-for-postobject">RestKit: What delegate method is called for postObject?</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload