SHARE
TWEET

Untitled

a guest Feb 21st, 2012 42 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from suds.client import Client
  2.  
  3. cli = Client("http://ws.dev.savvy.cz/service/TestLadon/soap/description")
  4. cu = cli.factory.create('Customer')
  5.  
  6. co1 = cli.factory.create('Contact')
  7. co1.ID = 1001
  8. co1.contactType = cli.factory.create('ContactType')
  9. co1.contactType.ID = 1101
  10.  
  11. co2 = cli.factory.create('Contact')
  12. co2.ID = 1002
  13. co2.contactType = cli.factory.create('ContactType')
  14. co2.contactType.ID = 1102
  15.  
  16. cu.contacts = [co1,co2]
  17.  
  18. res = cli.service.test(cu)
  19.  
  20. print "Result: %s" % str(res)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top