ware通信协议
前言
历时两年多的苦苦思索, 终于换来了:那道一闪而过的灵光---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>
http只能在有浏览器或类似浏览器的环境下工作, ware提供一种抽象而统一的协议, 实现电脑与电脑之间的统一交互, 有了ware协议, 我们就不需要去区分, http, ftp, jdbc, ===的协议了
请问好处在什么地方,和HTTP的调用有啥区别?