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.
 
 
 
 

20 lines
335 B

  1. #!/usr/bin/env python
  2. import time
  3. from SOAPpy import SOAP
  4. srv = SOAP.SOAPProxy('http://localhost:10080/')
  5. for p in ('good param', 'ok param'):
  6. ret = srv.badparam(p)
  7. if isinstance(ret, SOAP.faultType):
  8. print(ret)
  9. else:
  10. print('ok')
  11. dt = SOAP.dateTimeType(time.localtime(time.time()))
  12. print(srv.dt(dt))