• 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
Re: REST, SOAP, XML-RPC, ...?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: REST, SOAP, XML-RPC, ...?


  • Subject: Re: REST, SOAP, XML-RPC, ...?
  • From: Jens Alfke <email@hidden>
  • Date: Sun, 04 Nov 2012 17:42:38 -0800

On Nov 4, 2012, at 4:12 PM, Todd Heberlein <email@hidden> wrote:

> Is there currently a standard, Apple-recommended way of doing interoperable client-server architectures?

Nope. That’s not really something Apple sees as its job.

> I accidentally backed into a solution that is Apache, PHP, and libcurl, and I figured I should go with one of the many standards out there. REST is pretty close to what I am already doing, and looks nice, clean, and simple.

REST APIs are fairly easy to implement clients for using NSURLConnection.
For a data format I highly recommend JSON over XML; it’s much simpler to deal with.
There is some support in CFNetwork for XML-RPC and SOAP, but by all accounts it’s antiquated and buggy and difficult to use. I’d avoid it.

My CouchCocoa library (an API for CouchDB) has a lower layer that’s a fairly generic interface to REST+JSON protocols.
	https://github.com/couchbaselabs/CouchCocoa
	https://github.com/couchbaselabs/CouchCocoa/tree/master/REST

> And if so, are these some server-side APIs (???) that I can use on the web server side?

Well, that depends on what kind of framework you want to write your server on top of. Most of the modern frameworks (Rails, Django, node.js, etc.) make it pretty easy to implement REST-style APIs.

—Jens
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >REST, SOAP, XML-RPC, ...? (From: Todd Heberlein <email@hidden>)

  • Prev by Date: Re: REST, SOAP, XML-RPC, ...?
  • Next by Date: Re: REST, SOAP, XML-RPC, ...?
  • Previous by thread: Re: REST, SOAP, XML-RPC, ...?
  • Next by thread: Re: REST, SOAP, XML-RPC, ...?
  • Index(es):
    • Date
    • Thread