---
title: "ware通信协议"
author: "suifeng"
date: "2010-08-18T00:12:06Z"
tags: []
categories: ["互联网"]
slug: "ware"
draft: false
lastmod: "2010-08-18T00:15:59Z"
id: 739711
url: "https://pipe-line.iteye.com/blog/739711"
---

**前言**

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

 

**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>
 
```