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.
 
 
 
 

26 lines
682 B

  1. #!/usr/bin/env python
  2. ident = '$Id: whoisTest.py,v 1.4 2003/05/21 14:52:37 warnes Exp $'
  3. import os, re
  4. import sys
  5. sys.path.insert(1, "..")
  6. from SOAPpy import SOAPProxy
  7. # Check for a web proxy definition in environment
  8. try:
  9. proxy_url=os.environ['http_proxy']
  10. phost, pport = re.search('http://([^:]+):([0-9]+)', proxy_url).group(1,2)
  11. proxy = "%s:%s" % (phost, pport)
  12. except:
  13. proxy = None
  14. server = SOAPProxy("http://www.SoapClient.com/xml/SQLDataSoap.WSDL",
  15. http_proxy=proxy)
  16. print("whois>>", server.ProcessSRL(SRLFile="WHOIS.SRI",
  17. RequestName="whois",
  18. key = "microsoft.com"))