A fork of https://github.com/Synerty/SOAPpy-py3 This is a working tree till fixes get imported upstream.
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.
 
 
 
 

19 lines
442 B

  1. #!/usr/bin/env python
  2. import sys
  3. from SOAPpy import SOAP
  4. # Uncomment to see outgoing HTTP headers and SOAP and incoming SOAP.
  5. SOAP.Config.debug = 1
  6. SOAP.Config.BuildWithNoType = 0
  7. SOAP.Config.BuildWithNoNamespacePrefix = 0
  8. if len(sys.argv) > 1 and sys.argv[1] == '-s':
  9. server = SOAP.SOAPProxy("https://localhost:8080")
  10. else:
  11. server = SOAP.SOAPProxy("http://admin:pw3340@localhost:8080/",encoding=None)
  12. x = server.sopa()
  13. print(x)