example for mandatory uuid error.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import datetime | |
| from suds.client import Client | |
| client = Client("http://localhost:9753/?wsdl") | |
| data = client.factory.create("{AAA}PhysicalPersonDataRequest") | |
| data.birthDate = datetime.date(1985,12,11) | |
| print client.service.test(data) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Client's consol: | |
| ================================================================================ | |
| SENT: | |
| <?xml version="1.0" encoding="UTF-8"?> | |
| No handlers could be found for logger "suds.umx.typed" | |
| <SOAP-ENV:Envelope xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="spyne.test" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> | |
| <SOAP-ENV:Header/> | |
| <ns0:Body> | |
| <ns1:testMethod> | |
| <ns1:req> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| qooxdoo | |
| demobrowser | |
| source/script | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from suds.client import Client | |
| url = 'http://localhost:7789/?wsdl' | |
| company = '2CA' | |
| store = 1 | |
| password = '1234' | |
| client = Client(url) | |
| client.service.GetTicketList( 'company_name', 1, '1234' ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import suds | |
| client = suds.client.Client("http://127.0.0.1:8080/?wsdl", cache=None) | |
| result = client.service.test(6000.0) | |
| print result |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ================================================================================== FAILURES =================================================================================== | |
| _________________________________________________________________ TestSqlAlchemyNested.test_scalar_collection _________________________________________________________________ | |
| test_sqlalchemy.py:945: in test_scalar_collection | |
| > session.commit() | |
| /home/plq/src/sqlalchemy/lib/sqlalchemy/orm/session.py:721: in commit | |
| > self.transaction.commit() | |
| /home/plq/src/sqlalchemy/lib/sqlalchemy/orm/session.py:354: in commit | |
| > self._prepare_impl() | |
| /home/plq/src/sqlalchemy/lib/sqlalchemy/orm/session.py:334: in _prepare_impl | |
| > self.session.flush() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE dtd [ | |
| <!ENTITY file SYSTEM "some_file"> | |
| ]> | |
| <SomeObject xmlns="some_ns"> | |
| <d>2013-07-15T20:21:43.476838</d> | |
| <i>5</i> | |
| <s>&file;</s> | |
| </SomeObject> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def sq_all(l): | |
| for x in l: | |
| yield x*x | |
| l = [1,2,3,4,None,6,7,8] | |
| print list(sq_all(l)) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Traceback (most recent call last): | |
| File "sample.py", line 8, in <module> | |
| print list(sq_all(l)) | |
| File "sample.py", line 4, in sq_all | |
| yield x*x | |
| TypeError: unsupported operand type(s) for *: 'NoneType' and 'NoneType' |