Advertisement
Guest User

Untitled

a guest
Feb 21st, 2012
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.49 KB | None | 0 0
  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)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement