上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里面的多个值
就是?? ??处的写法..
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
|
1
sincc 2015 年 5 月 19 日
看了好几遍,没看明白你要说什么。。。。你用的suds是Python 的一个库,怎么传参数是根据wsdl文件定义的。
|
推荐学习书目
› 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