sending xml data by http post and get response

Discussion in 'iOS Programming' started by ranjeet, Sep 22, 2010.

  1. ranjeet macrumors newbie

    Joined:
    Sep 21, 2010
    #1
    i am making an app in which user's data is send to a server...the data should be in xml format.

    presently i have made a string and put all into it...like following format
    NSString *s=[[NSString alloc]initWithFormat:mad:"<name>%@</name><address>%@</address>",name.text,address.text];

    (this is just an example i have made a string with full xml tags including xml version tag)

    and then send this through http post method....
    i did it but dont know how to get response of server...please help ...any code will be helpful.....
    waiting for answer
     
  2. Luke Redpath macrumors 6502a

    Joined:
    Nov 9, 2007
    Location:
    Colchester, UK
    #2
    How are you performing the POST? Are you using NSURLConnection? If so, have you looked at it's various delegate methods?
     
  3. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #3
    We'll need to see the code for this.
     

Share This Page