You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
759 B
26 lines
759 B
from suds.client import Client |
|
import xml_to_dict |
|
from lib.gzip_base64 import ungzip_base64_dh2cmc |
|
|
|
soap_url = 'http://192.168.55.99/webservice/?wsdl' |
|
cinema_id = '304' |
|
|
|
|
|
class DhEcApi: |
|
def __init__(self, url, cid): |
|
self.ws_client = Client(url) |
|
self.user_name = 'TUOWEI' # 固定写死的参数 |
|
self.password = '668CBE9A6BCF4ABB' # 固定写死的参数 |
|
self.cinema_id = cid |
|
self.xml_parse = xml_to_dict.XMLtoDict() |
|
|
|
# 获取webservice全部可用方法(内部方法) |
|
def get_all_methods(self): |
|
print('获取webservice全部可用方法') |
|
all_methods = self.ws_client |
|
print(all_methods) |
|
|
|
|
|
if __name__ == "__main__": |
|
api = DhEcApi(soap_url, cinema_id) |
|
api.get_all_methods()
|
|
|