Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

martyndev

By: a guest on Jul 13th, 2009  |  syntax: Python  |  size: 0.40 KB  |  hits: 52  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #!/usr/bin/env python
  2.  
  3. from SOAPpy import WSDL
  4.  
  5. #url = 'http://api.google.com/GoogleSearch.wsdl?WSDL'
  6. url =   'http://192.0.1.95:8080/WebServiceCallCener/WSCallCenter?wsdl'
  7.  
  8. wsdlObject = WSDL.Proxy(url)
  9.  
  10. print 'Available methods:'
  11. for method in wsdlObject.methods.keys() :
  12.   print method
  13.   ci = wsdlObject.methods[method]
  14.   for param in ci.inparams :
  15.     print param.name.ljust(20) , param.type