推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
dbas
V2EX  ›  Python

请教 suds WebService 传值问题

  •  
  •   dbas · May 19, 2015 · 3453 views
    This topic created in 4146 days ago, the information mentioned may be changed or developed.
    上code:

    from suds.client import Client
    url = 'http://localhost:7080/webservices/WebServiceTestBean?wsdl'
    client = Client(url)

    result = client.service.getname(???=???, height=68)
    print result


    问题是:WebServiceTestBean
    在java是这样定义的:
    public String getname(StringqueryParam, String height)
    参数..
    <QueryParam name="人名" ab=”性别”>
    <ah nf="年份" sg="身高" />
    </QueryParam>

    我不懂java ...
    请教下.用suds如果传QueryParam里面的多个值
    就是?? ??处的写法..
    1 replies  •  2015-05-19 14:45:28 +08:00
    sincc
        1
    sincc  
       May 19, 2015
    看了好几遍,没看明白你要说什么。。。。你用的suds是Python 的一个库,怎么传参数是根据wsdl文件定义的。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2307 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 00:38 · PVG 08:38 · LAX 17:38 · JFK 20:38
    ♥ Do have faith in what you're doing.