python webservice 之 soaplib 安装的艰辛历程

(这中间眼泪哗哗滴哇,都是英文很差啊,找个类库也找不到,继续泪奔中)

        Python里作WebService的库不少,好比soappy,soaplib,ZSI等,这里我选择了soaplib(由于百度、google 上都说其余类库已经再也不更新了,而且soaplib 貌似支持生成wsdl文件)html

        soaplib 库依赖 lxml库 和 pytz库,lxml库依赖libxml2 库和libxslt库 ,
        如下附上下载地址(按照安装顺序排序)       

python

        

        pytz:        http://pypi.python.org/pypi/pytz/  (这个安装最简单了 没有什么依赖库)
        libxml2:   http://xmlsoft.org/
        libxslt:     http://xmlsoft.org/XSLT.html
        lxml:        http://lxml.de/index.html#download
        soaplib:   https://github.com/soaplib/soaplib/tree/1_0 (这里我强烈建议下载1.0版本,由于2.0 太坑爹了)
       
        由于libxml2 libxslt 我实在没法找到哪一个下载的可用的,由于我下载了10几个后放弃了,这个过程纠结的让人吐血,而后我找到了lxml的egg 安装包 附上地址:http://pypi.python.org/pypi/lxml/2.3#downloads  根据本身的系统下载就好了
附上egg安装方法:easy_install lxml-2.3-py2.6-win32.egg(这里我是window7 32位系统)
        而后 找到 soaplib-soaplib-4d3adf6\examples\helloworld.py 这个是官方提供的demo,运行一下 试试吧git


       注:若是哪位大神可以从  libxml2:   http://xmlsoft.org/     libxslt:     http://xmlsoft.org/XSLT.html 地址中找到可用类库,记得回来给个回复,O(∩_∩)O哈哈~github

相关文章
相关标签/搜索