Im connecting my iOS app to a restful webservice (WCF) where the request doesnt look the same as the response and im really having a hard time finding this in the restkit documentation.
Basically i have two classes that are related. ClassA has a collection of ClassB. When I send an instance of ClassB to the webservice the attribute that identifies the pk of the other class (ClassA) is called “ClassA”, just as excpected.
But, when the server successfully has added the object it sends it back and not the same attribute is called “ClassB1” (the microsoft way).
I´m thinking that i want to use two different mappings because just using “inverseMapping” isn´t really doing it for me. Anyone has any ideas?
The problem was solved by using RKObjectMapping in mElling´s answer as docksteaderluke suggested but only after I updated RestKit to version 0.20-pre6.