tags:

views:

5757

answers:

6

Does iPhone support XML-RPC, Is their any open source framework which I can use?

Thanks in advance.

+13  A: 

Checkout the source for the wordpress app. They might be using XML-RPC. :)

http://iphone.wordpress.org/

Lounges
They are using the Cocoa XML-RPC Client Framework (http://divisiblebyzero.com).
Chris R. Donnelly
+7  A: 

"Airsource Ltd" is really really incredibly wrong about that document. That document is specific to Mac OS X and NOT the iPhone. In fact (almost) all Apple iPhone documentation is hidden away behind a login page and a licence agreement. Most of the technologies that document refer to (e.g. AppleScript) do not even exist on the iPhone.

Amit, you'll have Zero luck if you follow Airsource's advice. You will however do ok if you do as "Lounges" says and go grab the wordpress source code. It looks like they rolled their own XMLRPC library for use on the iPhone.

As for SOAP - you're on your own. You might be able to find an opensource SOAP library built on top of libxml2 though. Good luck.

schwa
yeh I know mate, and I downloaded that code and trying to understand it and even wordpress uses one open source framework.thanks for your concerns and help.
Amit Vaghela
Good heavens. You are correct, and I've deleted my incorrect respponse. Perhaps you could delete a few adjectives? I've upvoted your answer anyway...
Airsource Ltd
+7  A: 

After spending too much time in iPhone application development,now I can answer my own question, Yes iPhone support XML-RPC and wordpress opensource application is best example of it, but from performance aspect I must say JSON-RPC is better to use with iPhone application,

from here http://code.google.com/p/json-framework u can download that framework.
and best thing is we don't need to write any parser for that all that complexity handled by framework very efficiently.

and we all know JSON is also better then XML, when to transfer data over internet.

Amit Vaghela
A: 

I heard that if you have control over the payload you could use a PLIST file as an array and retrieve it via NSArray method call. I haven't done it yet, but I might opt for this route since, using XMLRPC is giving me issues with malformed XML delcarations. :(

ok so thanks to this answer. I was able to clear out any "whitespaces" in my XMLRPC server (on wordpress) and retrieve my XMLRPC data onto the iPhone. YAY!

Zero Distortion
A: 

hi yes now you can communicate with wordpress with any device bacause now it support the xmlrpc for more details checkout http://codex.wordpress.org/XML-RPC_wp. That contails the list of method workout with wordpress from comment to image upload.for first you have to enable service with admin panel to setting->written.

have dream day

rubyid10
A: 

but how can we create the serverside end of the web service? thats what i want to know. im working on an iphone app that needs to post info and get info from a webservice. so i need to create that webservice backend first...

mars