develop SOAP client in iphone

Discussion in 'iOS Programming' started by bpstylianos, Sep 8, 2008.

  1. bpstylianos macrumors newbie

    Joined:
    Aug 3, 2008
    #1
    hi all,

    i'm a beginner with iphone SDK so i need your leniency if i say something wrong.

    I saw that there is a way to call a web service with AJAX (http://www.ibm.com/developerworks/webservices/library/ws-wsajax/), additionally
    i saw that you can call javascript from objective C.
    So my question is if you can develop a SOAP client in iphone using Ajax from objective C.

    is it possible?
    thanks
     
  2. springframework macrumors member

    Joined:
    Mar 31, 2008
    #2
    where did you read this?

    i saw that you can call javascript from objective C
     
  3. bpstylianos thread starter macrumors newbie

    Joined:
    Aug 3, 2008
  4. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #4
    That's all javascript to run in a web browser. If you want to "pretend" to be a web browser it's possible via NSURLConnection and NSMutableHttpRequest. It's up to you as the programmer to do all the work in this case: you have to setup the headers/data payload to make the request.

    And no: I'm not about to post code.
     
  5. bpstylianos thread starter macrumors newbie

    Joined:
    Aug 3, 2008
    #5
  6. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #6
    That appears to be talking about a tool that writes the javascript for you. This still runs in the browser. This has nothing to do with Objective-C.
     
  7. springframework macrumors member

    Joined:
    Mar 31, 2008
    #7
    All the code for this is in the documentation anyways.


    you just have to understand that a webservice is some headers with some xml data.
     

Share This Page