sending xml data by http post and get response

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

  1. ranjeet macrumors newbie

    Sep 21, 2010
    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 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

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


    Staff Member

    Sep 2, 2004
    The Centennial State
    We'll need to see the code for this.

Share This Page