Re: ERRest errors as json?
Re: ERRest errors as json?
- Subject: Re: ERRest errors as json?
- From: Miguel Arroz <email@hidden>
- Date: Tue, 03 May 2011 22:21:11 +0100
Hi!
Check <http://code.google.com/p/rest-notes/>, specifically the last section of <http://code.google.com/p/rest-notes/wiki/LecturePage>.
Regards,
Miguel Arroz
On 2011/05/03, at 21:14, Andrew Kinnie wrote:
> Greetings,
>
> My ERRest implementation of an APN Server app is about to go live (as is the iPad app it supports), but I have been asked to see if I could have ERRest return errors as json rather than the default (which appears to be xml).
>
> iOS apps are parsing the json returned when registering new devices via the server, but if there is a problem it returns xml and not json, so the parser crashes. We don't want to have to use an xml parser and try and handle when xml instead of json is returned, so I was wondering if there was some ERRest-friendly way to have the errors return json (with a key errorString or something like that).
>
> I can probably hack my way around it, and have not seen an obvious solution, so I thought I'd ask if I missed something.
>
> Andrew
>
> PS: Wonder from about 2-3 weeks ago or sooner, Java 1.6, WO 5.4.3 and the server is a CentOS based VM.
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden