diff options
author | jortel <devnull@localhost> | 2008-11-19 01:30:31 +0000 |
---|---|---|
committer | jortel <devnull@localhost> | 2008-11-19 01:30:31 +0000 |
commit | fc4ecab8795b428d54e8c318b119a96cb982ad1e (patch) | |
tree | c0c940e1992ec4966131c452c13c263a544e51ce /tests | |
parent | 16499903f3a207467ada104acc3a3408de9307e2 (diff) | |
download | suds-fc4ecab8795b428d54e8c318b119a96cb982ad1e.tar.gz |
Replace marshaller.Content parent stuff and marshaller.Content.namespace() with PartElement getting namespace from wsdl message body specification. Add prefix normalization to cleanup the message a little.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/axis1.py | 14 | ||||
-rw-r--r-- | tests/public.py | 4 |
2 files changed, 9 insertions, 9 deletions
diff --git a/tests/axis1.py b/tests/axis1.py index 5470137..6f1cb0a 100644 --- a/tests/axis1.py +++ b/tests/axis1.py @@ -51,7 +51,7 @@ try: # create a name object using the wsdl # print 'create name' - name = client.factory.create('ns0:Name') + name = client.factory.create('ns1:Name') name.first = u'jeff'+unichr(1234) name.last = 'ortel' print name @@ -59,24 +59,24 @@ try: # create a phone object using the wsdl # print 'create phone' - phoneA = client.factory.create('ns0:Phone') + phoneA = client.factory.create('ns1:Phone') phoneA.npa = 410 phoneA.nxx = 555 phoneA.number = 5138 - phoneB = client.factory.create('ns0:Phone') + phoneB = client.factory.create('ns1:Phone') phoneB.npa = 919 phoneB.nxx = 555 phoneB.number = 4406 # # create a dog # - dog = client.factory.create('ns0:Dog') + dog = client.factory.create('ns1:Dog') dog.name = 'Chance' dog.trained = True # # create a person object using the wsdl # - person = client.factory.create('ns0:Person') + person = client.factory.create('ns1:Person') print '{empty} person=\n%s' % person person.name = name person.age = 43 @@ -92,13 +92,13 @@ try: # # create a new name object used to update the person # - newname = client.factory.create('ns0:Name') + newname = client.factory.create('ns1:Name') newname.first = 'Todd' newname.last = None # # create AnotherPerson using Person # - ap = client.factory.create('ns0:AnotherPerson') + ap = client.factory.create('ns1:AnotherPerson') ap.name = person.name ap.age = person.age ap.phone = person.phone diff --git a/tests/public.py b/tests/public.py index 6b31cc3..7567d43 100644 --- a/tests/public.py +++ b/tests/public.py @@ -192,9 +192,9 @@ try: start(url) client = Client(url) print client - env = client.factory.create('ns2:Envelope') + env = client.factory.create('ns3:Envelope') print env - options = client.factory.create('ns4:MapImageOptions') + options = client.factory.create('ns5:MapImageOptions') print options except WebFault, f: errors += 1 |