Zend_XmlRpc

そのままだと動かないよ

client

	public function xmlrpcAction(){
		try{
			$client = new Zend_XmlRpc_Client('http://example.com/xmlrpcs');
// object
			$model = new Tables_User();
			$users = $model->fetchAll();

// array
//			$pingData = array(array("TEST BLOG", "http://example.com/blog"));

//連想
			//var_dump($users->toArray());
			$params = $users->toArray();

//ネストしたやつ
			$a = array(
				"ss" => array(
					"commons" => array(
						"user" => array(
							"aaaa" => "hogehoge",
							"bbbb"  => "fugafuga",
							"cccc"     => 1,
							"dddd"    => "mogemoge",
							"aeeee" => "wa-wa-wa-"
						)
					),
					"limit" => array(
						"cutoff"  => "2009-04-11"
					),
					"application" => array(
						"template_id" => "11"
					)
				)
			);
			$result = $client->call('hogehoge.entry', array($a));

		} catch(Exception $e) {
			var_dump($e);
		}


		var_dump( $result );
		echo "3";
		exit;
	}

client

	public function xmlrpcsAction(){

		$server = new Zend_XmlRpc_Server();
		$server->setClass('App_XmlRpc_Test','smartseries');



		$success = array(
			"success" => array(
				"code" => "200",
				"message" => "ok")
		);
		$filer = array(
			"failer" => array(
				"code" => "401",
				"message" => "error")
		);

		$server->handle();
		$res = new Zend_XmlRpc_Response(array($filer));

		echo $res->saveXML();

		exit;

	}

とかでok
すごく今更なんだろうけど、なるほどこれは便利