python webservice hello world
最近在搞基于python的webservice项目,今天为把环境给配好,折腾了不少时间,还是把配的过程记录下来,以后备用: 首先你系统上要有python,这个不必说啦,我系统上用的是2.7+ 其次,要用python进行webservice开发,还需要一些库: lxml : 命令行下 sudo easy_install lxml 就能安装 pytz : 命令行下 sudo easy_install pytz 就能安装 soaplib: 进行webservice开发必须要用的库,可以在 https://github.com/volador/soaplib 拿到,注意要先安装上面两个插件再安装这个,因为这个依赖于上面两个插件,把zip拿下来后解压,sudo python setup.py install 就能安装了。 Soaplib is an easy to use python library for publishing soap web services using WSDL 1.1 standard, and answering SOAP 1.1 requests. With a very small amount of code, soaplib allows you to write a useful web service and deploy it as a WSGI