1、首先导入jar包:具体见(https://blog.csdn.net/tuntunwang/article/details/51866661)
2、具体python代码如下:
#!/usr/bin/env python
# encoding: utf-8
import hprose
from hprose import HproseException
def main():
try:
id = 1123456789
args1 = "id,num,price"
#声明一个hprose对象
ob = hprose.HttpClient("http://www.test.com/orderone/OrderToTablesNo")
# getOrderInfoByInfo为服务端方法名
print(ob.getOrderInfoByInfo(id, args1))
except HproseException as e:
print(":" , e)
if __name__ == '__main__':
main()
3、总结