中国IT动力,最新最全的IT技术教程
最新100篇 | 推荐100篇 | 专题100篇 | 排行榜 | 搜索 | 在线API文档 | 网通镜像
首 页 | 程序开发 | 操作系统 | 软件应用 | 图形图象 | 网络应用 | 精文荟萃 | 教育认证 | 硬件维护 | 未整理篇 | 站长教程
ASP JS PHP工程 ASP.NET 网站建设 UML J2EESUN .NET VC VB VFP 网络维护 数据库 DB2 SQL2000 Oracle Mysql
服务器 Win2000 Office C DreamWeaver FireWorks Flash PhotoShop 上网宝典 CorelDraw 协议大全 网络安全 微软认证
硬件维护  CPU  主板  硬盘  内存  显卡  显示器  键盘鼠标  声卡音箱  打印机  机箱电源  BIOS  网卡  C#  Java  Delphi  vs.net2005
  当前位置:> 程序开发 > 编程语言 > 综合其它
XMLRPC-EPI学习笔记1
作者:未知 时间:2005-09-13 23:33 出处:Blog.ChinaUnix.net 责编:chinaitpower
              摘要:XMLRPC-EPI学习笔记1

引言

    为了学习xml-rpc,找到了一个xml-rpc的c语言的server/client实现,通过它的学习来掌握xml-rpc。

简述

     xmlrpc-epi是一个xml-rpc的c语言实现,但是它不包括传输层,像HTTP。现在最新版也支持SOAP1.1

使用范例

    可以使用这个库,实现服务器和客户端。

特征和体系结构

  • 对值的操作有全面的API
  • XML的分析(xml_element.c)是完全独立于XMLRPC接口库的。它能被当作一个独立的实现使用。
  • Because of this, the same XMLRPC data can be serialized into multiple xml vocabularies. It is simply a matter of writing a transport. So far, two transports have been defined. The default xmlrpc vocab (xml_to_xmlrpc.c), and simple-rpc (xml_to_dandarpc.c) which is proprietary, but imho more readable, and nice for proprietary legacy reasons.
  • Various output options, including: xml escaping via CDATA or entity, case folding, vocab version, and character encoding.
  • support for converting UTF-8 (from xml parser) to local character encoding.
  • One to One mapping between C structures and actual values, without developer having to know arcana of xmlrpc protocol.
  • support for mixed indexed/keyed vector types, making it more compatible with languages such as PHP.
  • quite speedy compared to implementations written in interpreted languages. Also, uses intelligent string handling, so not many strlen() calls, etc.

XMLRPC-EPI Architecture

解说

  • Support Routines: 被系统使用的基本的实用程序
  • XML Parser:  读入外部的XML数据,提供给xml_element来分析
  • XML In Memory Tree: 这个程序负责读入和写出xml数据,它与xmlrpc无关,也能被用来做其他用途,如读取xml的配置文件。
  • Vocabulary Serializers: 这个程序在xml和xmlrpc数据结构之间转换
  • Application API: 这是应用程序使用的XMLRPC的API,它提供了容易的数据操作,方法注册和处理

今天就到这把,明天进行安装和例子的编译。

 

关闭本页
 
首页 | 投资与合作 | 服务条款 | 隐私政策 | 收藏本站 | 设为首页 | 新用户注册 | 免责声明 | 使用帮助
Copyright ©2005-2008 chinaitpower.com All rights reserved. www.chinaitpower.com 版权所有