Web服务是一种有效的面向服务架构实现方式,而如何有效传输数据是Web服务实现时需要着重考虑的问题之一。基于Web服务侍输原理,分析了其数据传输效率,再结合不同类型数据的特点,提出对不同类型数据采用不同的压缩方式以提高数据传输效率的思想。实验结果表明,基于数据类型选择合适的压缩方式能有效提高Web服务中数据传输的效率。
Web service is an effective way to achieve service-oriented architecture. How to transfer data effectively is a key problem to consider in practice. The data transmission efficiency was analyzed based on Web service transfer principle. Then, combining with the characteristics of different data, different compression methods were used for different data to improve the efficiency of data transmission. The experimental results show that data transmission efficiency in Web service can be improved, if the compression method is selected based on the data type.