tags:

views:

206

answers:

3

I hared that many of the blog sites were using this protocol, i just want to know what is that when/where we use this XMLRPC

Any Example with PHP would be appreciable :)

I didnt see any kind of question like this in stack Overflow.

Thanks in Advance !!

+1  A: 

You use an XML-RPC Server when you want to expose an XML-RPC interface (API) to your application.

You use an XML-RPC client to connect to an XML-RPC server.

http://en.wikipedia.org/wiki/XML-RPC

For examples with PHP see Zend_XmlRpc_Client and Zend_XmlRpc_Server.

If you're familiar with MVC, think of it as another View/Controller for your Model. You expose functions within your application to the outside world via XML-RPC.

hobodave
+1  A: 

XML-RPC predates SOAP. It's ancient, and almost unused today.

John Saunders
Care to explain the reason for the downvote? Is this inaccurate?
John Saunders
Fact: XML-RPC predates SOAP. Subjective: It's ancient, and almost unused today.
hobodave
I got downvoted for reasons unbeknownst to me as well.
hobodave
@hobodave: ancient means it's over ten years old. Almost unused is quite objective - who's using it? Where's the tool support? XML-RPC became SOAP, then should have quietly died. "became SOAP" is objective. "then should have quietly died" is subjective. And that's why my answer didn't say "should have quietly died".
John Saunders
I use it. My company uses it. I know rather large enterprise projects that are using it.
hobodave
@hobodave: Please add an answer saying why you still use it, and better still, why anyone should write a new application using it. You might also say why you prefer dinosaurs to birds.
John Saunders
My company uses it too. I think it is inaccurate to say "hardly used". It's got an advantage over SOAP in terms of being simple. But lately I've been wondering what benefit it provides over plain XML.
Tim Cooper
@Tim Cooper: Please add an answer saying why you still use it, and better still, why anyone should write a new application using it. You might also say why you prefer dinosaurs to birds.
John Saunders
A: 

I recently wrote a series of articles about using XML-RPC in PHP. The series describes how to use Technorati weblog updates ping XML-RPC service using various approaches. There is also a post explaining how to create an XML-RPC server using PHP.

Sudheer