0

I have an array of objects that consist of several strings, I need to push these up to a web service as XML data. What are the steps involved here? As far as I know I need to convert the objects to a plist file, then convert this file to NSData (?) I can't find anything online that really lays it out..

Any help would be greatly appreciated.

Jack Nutkins
  • 1,555
  • 5
  • 36
  • 71

2 Answers2

1

Another approach is JSON. SBJSON is very common and simple to use.

It's a two-liner to get a json string from your array. Then you'll create an NSURLRequest that represents the post and an NSURLConnection that performs the request. Lot's of resources for that on SO and elsewhere.

Community
  • 1
  • 1
danh
  • 62,181
  • 10
  • 95
  • 136
0

You can try this or this. I doubt plist files are what you want. All you need is to serialize your object into the xml format your web service requires.

Paul de Lange
  • 10,613
  • 10
  • 41
  • 56