Confused about XML-RPC

"digital.spaghetti" <[email protected]> Sat, 07 Apr 2007 21:41:01 -0000
Newsgroups gmane.text.xml.rpc.specification
Message-ID <[email protected]>
Hi folks,

I'm designing an application using CakePHP and want to include XML-RPC
functionality, mainly something like a Moveable Type API, so Flockr
can support posting to it.

I'm confused about where I actually have to place the functionality .
 For example, in CakePHP when I want to create a new post all I need
to do is this:

function admin_add()
	{
		if (!empty ($this->data))
		{
			if ($this->Post->save($this->data))
			{
				$this->Session->setFlash('Post successfuly saved');
				$this->redirect('/posts/index/');
                        }
                 }
}

When I call the function (by doing /admin/posts/add in a form), the
$this->data is all the form params that are passed in.

What I'm trying to understand is where XML-RPC all fits into this. 
Also, how to I make sure something like the Flockr blog poster fits my
post format.  Here is my table to show you what I do (please note tags
are not implemented yet)

CREATE TABLE `posts` (
  `id` int(8) unsigned NOT NULL auto_increment,
  `title` varchar(150) NOT NULL,
  `byline` varchar(255) NOT NULL,
  `body` text NOT NULL,
  `user_id` int(8) unsigned NOT NULL,
  `url` varchar(200) NOT NULL,
  `published` tinyint(1) NOT NULL default '0',
  `created` datetime NOT NULL,
  `modified` datetime NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 AUTO_INCREMENT=12 ;


A few things to note: ID, Created and Modified are created by CakePHP,
url is a SEO friendly URL created from the title (i.e.
this_is_the_title), user_id obviously is the posters ID (and again,
I'm also not sure on how I let users log in).  FInally published is
just a draft flag.

If anyone can point me to any tutorials or articles for someone new to
XML-RPC and wanting to implement it, that would be most helpful and I
would be very greatful.

Regards,
Tane Piper
http://webrocket.wordpress.com



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/xml-rpc/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/xml-rpc/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[email protected] 
    mailto:[email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/