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.
 
 
 
 

35 lines
917 B

  1. #!/usr/bin/env python
  2. # Copyright (c) 2001 actzero, inc. All rights reserved.
  3. ident = '$Id: xmethods.py,v 1.4 2003/12/18 06:31:50 warnes Exp $'
  4. import os, re
  5. import sys
  6. sys.path.insert(1, "..")
  7. from SOAPpy import SOAPProxy
  8. # Check for a web proxy definition in environment
  9. try:
  10. proxy_url=os.environ['http_proxy']
  11. phost, pport = re.search('http://([^:]+):([0-9]+)', proxy_url).group(1,2)
  12. proxy = "%s:%s" % (phost, pport)
  13. except:
  14. proxy = None
  15. print "##########################################"
  16. print " SOAP services registered at xmethods.net"
  17. print "##########################################"
  18. server = SOAPProxy("http://www.xmethods.net/interfaces/query",
  19. namespace = 'urn:xmethods-delayed-quotes',
  20. http_proxy=proxy)
  21. names = server.getAllServiceNames()
  22. for item in names:
  23. print 'name:', item['name']
  24. print 'id :', item['id']
  25. print