Jan 26, 2012 at 3:17 PM
Edited Jan 26, 2012 at 3:19 PM
|
Finded!
You had to rewrite a JSon Parser compatible with an OData JSon Stream,
Add it to the library.
Modify the
+(NSMutableDictionnary*)CreateHeaders:(NSString*)
eTag:(NSString*)
ODataServiceVersion:(NSString*);
method to add JSon Support with this header:
Accept: application/json,text/javascript
And it will work (I haven't tried, it's too loose time for me).
The CreateHeaders method is called from
-(HTTPHandler*)executeHTTPRequest:(NSSTring*)
httpmethod:(NSString*)
httpbodydata:(NDData*)
etag:(NSString*)
customHeaders:(NSMutableDictionary*)
Note: if you want to add support of custom headers request you should pass a non
nil value to this method in :
-(HTTPHandler*)executeHTTPRequest:(NSString*)
httpmethod:(NSString*)
httpbodydata:(NDData*)
etag:(NSString*)
This three methods are in the ObjectContext class.
If I have time, I will fork the OData4ObjC on github to propose this correction.
Good luck.
Gwennin
|