diff options
| author | jortel <devnull@localhost> | 2009-11-24 17:33:58 +0000 |
|---|---|---|
| committer | jortel <devnull@localhost> | 2009-11-24 17:33:58 +0000 |
| commit | d32659dd4d4d15a956e9bbc2116c136ec2f13780 (patch) | |
| tree | 51e94093db636f7d042927630ab76faa1a965321 /tests/axis2.py | |
| parent | 405a8e5b265becaf58f8de64cdbd17115153d25b (diff) | |
| download | suds-d32659dd4d4d15a956e9bbc2116c136ec2f13780.tar.gz | |
Provides the unmarshaller part of the 'enhanced soap encoded array support'. Flattens soap encoded arrays returned by rpc/encoded servers into python lists. ** IMPORTANT: This changes (improves) the form of returned soap encoded arrays. They are now flattened. Old, person.pets=(Pets)pets[]=[pet,], New person.pets=[pet,].
Diffstat (limited to 'tests/axis2.py')
| -rw-r--r-- | tests/axis2.py | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/tests/axis2.py b/tests/axis2.py index aa8e63d..8ed0bdd 100644 --- a/tests/axis2.py +++ b/tests/axis2.py @@ -29,7 +29,7 @@ errors = 0 setup_logging() -logging.getLogger('suds.client').setLevel(logging.DEBUG) +#logging.getLogger('suds.client').setLevel(logging.DEBUG) url = 'http://localhost:8080/axis2/services/BasicService?wsdl' @@ -172,13 +172,11 @@ print '\nreply( %s )\n' % str(result) # # test list returned # -print 'getList(str, 1)' -result = client.service.getList('hello', 1) -print '\nreply( %s )\n' % str(result) - -print 'getList(str, 3)' -result = client.service.getList('hello', 3) -print '\nreply( %s )\n' % str(result) +for n in range(0, 3): + print 'getList(str, %d)' % n + result = client.service.getList('hello', n) + print '\nreply( %s )\n' % str(result) + assert ( isinstance(result, list) and len(result) == n ) print 'addPet()' dog = client.factory.create('ns2:Dog') |
