Accessing web services from an iPhone

Discussion in 'iOS Programming' started by rrpalma, Jul 23, 2010.

  1. rrpalma
    Expand Collapse
    macrumors member

    Joined:
    Sep 21, 2008
    #1
    Hello,

    Total noob here to iphone programming, but not to Objective-C.

    Does the iPhone SDK provide for a set of classes / APIs to access remote web services? Or do simple HTTP POSTs and GETs?

    Thanks for your comments!
     
  2. dejo
    Expand Collapse
    Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    Isn't that how most web services are done?
     
  3. rrpalma
    Expand Collapse
    thread starter macrumors member

    Joined:
    Sep 21, 2008
    #3
    Thanks for reading. You're right I guess. But although all web services involve a POST (or a GET) not all GETs or POSTs are for web services. So perhaps I should rephrase my question to a more specific:

    Does the iphone SDK provide an API for SOAP based web services, or at the very least, for doing basic POSTs and GETs?
     
  4. robbieduncan
    Expand Collapse
    Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #4
    I don't think there i built-in support for SOAP. NSURLConnection can do POST or GET http connections.
     
  5. skunkworker
    Expand Collapse
    macrumors regular

    Joined:
    Sep 9, 2007
    #5
    Can't NSURLConnection pretty much do any thing that a RESTful interface would allow?
     
  6. robbieduncan
    Expand Collapse
    Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #6
    Yes, but you have to do a lot of work yourself. If Apple chose to provide a set of classes for this sort of thing you can imagine it would be a few lines of code only.
     

Share This Page