• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
ERRest error messages as JSON instead of XML?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ERRest error messages as JSON instead of XML?


  • Subject: ERRest error messages as JSON instead of XML?
  • From: Andrew Kinnie <email@hidden>
  • Date: Thu, 05 May 2011 16:34:33 -0400

Greetings again,

I am about to go live with my push server (using WO 5.4.3 and ERRest) to push out iOS push notification to iOS devices with our app we are submitting tonight, and it occurred to me I have one remaining issue with the ERRest implementation.

Our iOS app consumes the data in json format (which is set as the default by the various controllers), but if there is an error of some nature in the returned response, the error comes back as XML and not json, causing a crash which the iOS app has to swallow and recover from.  We'd much rather have the errors in json format so the same parser can effectively parse the response whether it succeeds or fails.

Is there a way to get ERRest to return error messages as json instead of XML?  I didn't see anything obvious, and now I am in a time crunch.

Thanks in advance

Andrew

 _______________________________________________
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

  • Follow-Ups:
    • Re: ERRest error messages as JSON instead of XML?
      • From: Pascal Robert <email@hidden>
    • Re: ERRest error messages as JSON instead of XML?
      • From: Mike Schrag <email@hidden>
  • Prev by Date: Re: New ec2 image missing mod_WebObjects.so?
  • Next by Date: Re: ERRest error messages as JSON instead of XML?
  • Previous by thread: Re: New ec2 image missing mod_WebObjects.so?
  • Next by thread: Re: ERRest error messages as JSON instead of XML?
  • Index(es):
    • Date
    • Thread