Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from suds.client import Client
- cli = Client("http://ws.dev.savvy.cz/service/TestLadon/soap/description")
- cu = cli.factory.create('Customer')
- co1 = cli.factory.create('Contact')
- co1.ID = 1001
- co1.contactType = cli.factory.create('ContactType')
- co1.contactType.ID = 1101
- co2 = cli.factory.create('Contact')
- co2.ID = 1002
- co2.contactType = cli.factory.create('ContactType')
- co2.contactType.ID = 1102
- cu.contacts = [co1,co2]
- res = cli.service.test(cu)
- print "Result: %s" % str(res)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement