-
Notifications
You must be signed in to change notification settings - Fork 0
/
client.py
51 lines (44 loc) · 1.28 KB
/
client.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# coding:utf-8
from suds.client import Client
# hello_client = Client('http://40.125.204.79:7792/bigweb/services/SafeOutAccess?wsdl')
hello_client = Client('http://127.0.0.1:7789/bigweb/services/SafeOutAccess?wsdl')
print hello_client
hello_client.options.cache.clear()
# print hello_client
# result = hello_client.service.say_hello(
# """<?xml version="1.0" encoding="UTF-8" ?>
# <root>
# <QueryCondition>
# <wjm>11001901120180305000008</wjm>
# </QueryCondition>
# <QueryCondition>
# <wjm>11001901120180305000010</wjm>
# </QueryCondition>
# <QueryCondition>
# <wjm>09000109120171123000004</wjm>
# </QueryCondition></root>""")
ss = """<?xml version="1.0" encoding="UTF-8" ?>
<root>
<QueryCondition>
<wjm>11001901120180305000008</wjm>
</QueryCondition>
<QueryCondition>
<wjm>11001901120180305000010</wjm>
</QueryCondition>
<QueryCondition>
<wjm>09000109120171123000004</wjm>
</QueryCondition></root>"""
result = hello_client.service.queryRdsOut(xtlb="80",
jkxlh='',
jkid='81Q03',
babh='',
wkmac='',
UTF8XmlDoc=ss)
print result
result2 = hello_client.service.writeRdsOut("80",
jkxlh='',
jkid='81W01',
babh='',
wkmac='',
UTF8XmlDoc='')
print result2