V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 2015-05-19 11:26:56 +08:00 · 2476 次点击
    这是一个创建于 3272 天前的主题,其中的信息可能已经有所发展或是发生改变。
    上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 条回复    2015-05-19 14:45:28 +08:00
    sincc
        1
    sincc  
       2015-05-19 14:45:28 +08:00
    看了好几遍,没看明白你要说什么。。。。你用的suds是Python 的一个库,怎么传参数是根据wsdl文件定义的。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2138 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 11:42 · PVG 19:42 · LAX 04:42 · JFK 07:42
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.