Handling responses for difference POST in the same controller in RestKit

I want to write a method, in my method I need post two POST methods to my web service and get data json returned for every method. How can I process response for separate post? Ex: in my view, I have:

[[RKObjectManager sharedManager] postObject:joeBlow delegate:self]; (1) [[RKObjectManager sharedManager] postObject:joeBlow_1 delegate:self]; (2)

How can I handle response for (1) and (2) in the same controller. Thanks

--------------Solutions-------------

not sure if I understood it right , but maybe use:

- (void)objectLoader:(RKObjectLoader*)loader willMapData:(inout id *)mappableData ?

Category:response Time:2011-11-07 Views:1

Related post

  • difference between view and view controller technically? 2010-09-07

    I am new to iphone programming? Can anybody tell me difference between view and view controller?? is the same difference between table view and table view controller? My understanding is that - like in MVC architecture view controller - will acts as

  • Difference between use of a controller factory and NinjectHttpApplication? 2011-01-25

    Using Ninject 2 MVC 3. Correct me if i am wrong but ive seen two way of using Ninject in an MVC 3 application. We can use a new controller factory which is like ControllerBuilder.Current.SetControllerFactory(new NinjectControllerFactory()); or using

  • CXF webservice client, how to handle response from a called webservice? 2011-09-17

    i have implemented a webservice client that is used inside a webapplication (using Spring) and this client gets a response in which CXF bailsout and gives me an error message. The error message is: Server did not recognize the value of HTTP Header SO

  • NSURLConnection and handling response code and response data 2008-12-01

    I have an odd edge case right now in that a response code from an NSURLConnection delegate method: - (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response; Is triggered before the subsequent delegate method: - (v

  • POST XML to URL with PHP and Handle Response 2009-01-23

    I've seen numerous methods of POSTing data with PHP over the years, but I'm curious what the suggested method is, assuming there is one. Or perhaps there is a somewhat unspoken yet semi-universally-accepted method of doing so. This would include hand

  • Handling web.config differences across multiple machines when using version control 2009-06-19

    I'm sure everyone has to deal with these situations, we check in our solution to source control and each dev machine will have its own resources for debugging, building and testing.. The most common being: Web server (IIS) Database (SQL) The web serv

  • Handling responses in libcurl 2010-04-22

    i have a code to send a Form Post with login credentials to a webpage. it looks like this CURL *curl; CURLcode res; struct curl_httppost *formpost=NULL; struct curl_httppost *lastptr=NULL; struct curl_slist *headerlist=NULL; static const char buf[] =

  • Handling response after PDF AcroForms HTTP-POST 2010-11-10

    I want to inform the user that his HTML Form submission from a PDF file has been successful (or not). Now when I used the browser-plugin with adobe reader I could get a HTML response displayed withing the browser. In the case of using the standalone

  • Handling response object after POST 2011-06-22

    I'm working with django, and trying to retrieve a list via POST, sent by jQuery. The post code: $.ajax({ method: 'POST', url:'/coupons/sideContentCoupons/', success: function(data){ // access response and retrieve data. } }); The handler: def sideCon

  • how to handle response contents by AJAX 2011-10-05

    for me it seems impossible but expecting clarification on it. i am sending a request as follow : <form action="/name" method="get"> <input type="text" /> <input type="submit" /> </form> Now action class at server side manipula

  • Unable to handle responses timeout using HTTPURLConnection in android 2011-10-10

    I use the following code to upload a file to server, it seems to working fine,when i got uploaded and get back some responses form data, but when connection time out or lose my connectivity i didnt get any responses and the execution of function stop

  • RestTemplate - Handling response headers/body in Exceptions (RestClientException, HttpStatusCodeException) 2011-10-24

    In my restful webservice, in case of bad request (5xx) or 4xx respose codes, I write a custom header "x-app-err-id" to the response. On the client side, I use exchange method of RestTemplate to make a RestFul web service call. Everything is fine when

  • How do I handle response from an Ajax Request in Rails 3? 2012-03-06

    I have a CRUD application set up in Ruby on Rails 3 - its working as is. I need to add some ajax here. My first requirement is to retrieve a customised form when clicking on a New Form link. This is the link I have at this point: <%= link_to 'New

  • Handle Transaction on differents EARs 2009-12-14

    what is the best practice to handle multiple EARs and the same transaction, as far as we know we need to apply XA concepts in order transaction works correctly. but apparently in currents project that we've been working on, this is not strictly neces

  • Handling response.redirect errors in JSP page 2010-03-02

    i have a condition where an URL is manipulated or changed wantedly. i have to catch the error and move to error page. but the error page is never called. I am using response.sendRedirect("MyURL"); in the jsp page. If the URL is correct its working fi

  • Spring RestTemplate Behavior when handling responses with a status of NO_CONTENT 2010-07-23

    Okay, I have a class NamedSystems, that has as its only field a Set of NamedSystem. I have a method to find NamedSystems by certain criteria. That's not really important. When it gets results, everything works fine. However, when it can't find anythi

  • How to handle response encoding from urllib.request.urlopen() 2011-02-13

    I'm trying to search a webpage using regular expressions, but I'm getting the following error: TypeError: can't use a string pattern on a bytes-like object I understand why, urllib.request.urlopen() returns a bytestream and so, at least I'm guessing,

  • Handling sharepoint workflow differences between dev, test and production 2011-02-18

    How do you handle having different time delays and sending notifications to different users based on the environment they are running in (dev, test & production)? We are developing long running workflows that we would like to have delay for minut

  • How to handle ImageView setImageResource difference from setImageDrawable 2011-11-16

    So after tons of frustrations with trying to stretch my image properly to width I realise my real problem is that setImageResource acts different from setImageDrawable (which I'm trying to use). XML below gives me perfect width, aspect ratio stretche

Copyright (C) pcaskme.com, All Rights Reserved.

processed in 0.631 (s). 13 q(s)