ITeye博客

ware通信协议

suifeng · 2010-08-18 00:12 · 3ware · 互联网 · Markdown

前言

历时两年多的苦苦思索, 终于换来了:那道一闪而过的灵光---ware通信协议. (灵感来地总是让人欣喜若狂)

 

ware通信协议

 

ware通信协议格式分为4类

 

  • request
  • response
  • plan
  • report

request

 

<?xml version="1.0" encoding="uft-8"?>

<ware from="host:port:scene" to="host:port:scene">
        <request> <![CDATA[  (XML DATA) ]]></request>
</ware>

 

respone

 

 

<?xml version="1.0" encoding="uft-8"?>

<ware from="host:port:scene" to="host:port:scene">
        <respone> <![CDATA[  (XML DATA) ]]></respone>
</ware>

 

 

 

plan

 

<?xml version="1.0" encoding="uft-8"?>

<ware from="host:port:scene" to="host:port:scene">
        <plan> <![CDATA[  (XML DATA) ]]></plan>
</ware>
 

 

 

report

 

<?xml version="1.0" encoding="uft-8"?>

<ware from="host:port:scene" to="host:port:scene">
        <report> <![CDATA[  (XML DATA) ]]></report>
</ware>
 

评论(2)

  1. #2 楼 · suifeng · 2010-08-18 00:22

    mercyblitz writes:

    请问好处在什么地方,和HTTP的调用有啥区别?

    http只能在有浏览器或类似浏览器的环境下工作, ware提供一种抽象而统一的协议, 实现电脑与电脑之间的统一交互, 有了ware协议, 我们就不需要去区分, http, ftp, jdbc, ===的协议了

  2. #1 楼 · mercyblitz · 2010-08-18 00:15

    请问好处在什么地方,和HTTP的调用有啥区别?

评论功能维护中,当前仅展示历史评论。