-
Notifications
You must be signed in to change notification settings - Fork 0
/
web_client.py
60 lines (54 loc) · 1.7 KB
/
web_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
51
52
53
54
55
56
57
58
59
60
<<<<<<< HEAD
import SOAPpy
#
# <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cms="http://cms.orange.com/">
#<soapenv:Header/>
# <soapenv:Body>
# <cms:getConnection>
# <!--Optional:-->
# <user>IFBL</user>
# <!--Optional:-->
# <password>IFBL</password>
# <id>222222</id>
# </cms:getConnection>
# </soapenv:Body>
# </soapenv:Envelope>
#
class RequestData :
def __init__ ( self, login, password ) :
self.login = login
self.password = password
def main () :
#http://vmcmstst2:6672/WsEe/RoomOffer
SOAPclient = SOAPpy.WSDL.Proxy( r'http://vmcmstst2:6672/WsEe/RoomOffer' )
print client.say_hello( name = 'getConnection' )
# print client.login( request = RequestData( "roinet", "123" ) )
if __name__ == '__main__' :
=======
import SOAPpy
#
# <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cms="http://cms.orange.com/">
#<soapenv:Header/>
# <soapenv:Body>
# <cms:getConnection>
# <!--Optional:-->
# <user>IFBL</user>
# <!--Optional:-->
# <password>IFBL</password>
# <id>222222</id>
# </cms:getConnection>
# </soapenv:Body>
# </soapenv:Envelope>
#
class RequestData :
def __init__ ( self, login, password ) :
self.login = login
self.password = password
def main () :
#http://vmcmstst2:6672/WsEe/RoomOffer
SOAPclient = SOAPpy.WSDL.Proxy( r'http://vmcmstst2:6672/WsEe/RoomOffer' )
print client.say_hello( name = 'getConnection' )
# print client.login( request = RequestData( "roinet", "123" ) )
if __name__ == '__main__' :
>>>>>>> e55f97114d0da06a25cf60393f67b0e16521bd92
main()