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.
 
 
 
 

31 lines
805 B

  1. #!/usr/bin/env python
  2. # Copyright (c) 2001 actzero, inc. All rights reserved.
  3. import sys
  4. sys.path.insert (1, '..')
  5. from SOAPpy import *
  6. ident = '$Id: cardClient.py,v 1.4 2004/02/18 21:22:13 warnes Exp $'
  7. endpoint = "http://localhost:12027/xmethodsInterop"
  8. sa = "urn:soapinterop"
  9. ns = "http://soapinterop.org/"
  10. serv = SOAPProxy(endpoint, namespace=ns, soapaction=sa)
  11. try: hand = serv.dealHand(NumberOfCards = 13, StringSeparator = '\n')
  12. except: print("no dealHand"); hand = 0
  13. try: sortedhand = serv.dealArrangedHand(NumberOfCards=13,StringSeparator='\n')
  14. except: print("no sorted"); sortedhand = 0
  15. try: card = serv.dealCard()
  16. except: print("no card"); card = 0
  17. print("*****hand****\n",hand,"\n*********")
  18. print("******sortedhand*****\n",sortedhand,"\n*********")
  19. print("card:",card)
  20. serv.quit()