Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DEBUG:spyne.model.complex:Got bases for ComplexModel from meta: (<class 'spyne.model.complex.ComplexModelBase'>,)
- DEBUG:spyne.model.complex:Got bases for Array from meta: (<class 'spyne.model.complex.ComplexModelBase'>,)
- DEBUG:spyne.model.complex:Got bases for Iterable from meta: (<class 'spyne.model.complex.Array'>,)
- DEBUG:spyne.model.complex:Got bases for Fault from meta: (<class 'spyne.model.complex.ComplexModelBase'>, <class 'Exception'>)
- DEBUG:spyne.model.complex:Got bases for InvalidCredentialsError from meta: (<class 'spyne.model.fault.Fault'>,)
- DEBUG:spyne.model.complex:Got bases for RequestTooLongError from meta: (<class 'spyne.model.fault.Fault'>,)
- DEBUG:spyne.model.complex:Got bases for RequestNotAllowed from meta: (<class 'spyne.model.fault.Fault'>,)
- DEBUG:spyne.model.complex:Got bases for ArgumentError from meta: (<class 'spyne.model.fault.Fault'>,)
- DEBUG:spyne.model.complex:Got bases for InvalidInputError from meta: (<class 'spyne.model.fault.Fault'>,)
- DEBUG:spyne.model.complex:Got bases for ValidationError from meta: (<class 'spyne.model.fault.Fault'>,)
- DEBUG:spyne.model.complex:Got bases for InternalError from meta: (<class 'spyne.model.fault.Fault'>,)
- DEBUG:spyne.model.complex:Got bases for ResourceNotFoundError from meta: (<class 'spyne.model.fault.Fault'>,)
- DEBUG:spyne.model.complex:Got bases for RespawnError from meta: (<class 'spyne.error.ResourceNotFoundError'>,)
- DEBUG:spyne.model.complex:Got bases for ResourceAlreadyExistsError from meta: (<class 'spyne.model.fault.Fault'>,)
- DEBUG:spyne.model.complex:Got bases for Redirect from meta: (<class 'spyne.model.fault.Fault'>,)
- DEBUG:spyne.model.complex:Got bases for _Value from meta: (<class 'spyne.model.complex.ComplexModel'>,)
- DEBUG:spyne.model.complex:Got bases for SchemaValidationError from meta: (<class 'spyne.model.fault.Fault'>,)
- DEBUG:spyne.model.complex:Got bases for HttpRedirect from meta: (<class 'spyne.error.Redirect'>,)
- DEBUG:spyne.model.complex:Got bases for SchemaBase from meta: (<class 'spyne.model.complex.ComplexModelBase'>,)
- DEBUG:spyne.model.complex:Got bases for Import from meta: (<class 'spyne.interface.xml_schema.defn.SchemaBase'>,)
- DEBUG:spyne.model.complex:Got bases for Element from meta: (<class 'spyne.interface.xml_schema.defn.SchemaBase'>,)
- DEBUG:spyne.model.complex:Got bases for IntegerAttribute from meta: (<class 'spyne.interface.xml_schema.defn.SchemaBase'>,)
- DEBUG:spyne.model.complex:Got bases for StringAttribute from meta: (<class 'spyne.interface.xml_schema.defn.SchemaBase'>,)
- DEBUG:spyne.model.complex:Got bases for List from meta: (<class 'spyne.interface.xml_schema.defn.SchemaBase'>,)
- DEBUG:spyne.model.complex:Got bases for SimpleType from meta: (<class 'spyne.interface.xml_schema.defn.SchemaBase'>,)
- DEBUG:spyne.model.complex:Got bases for SimpleType from orig: (<class 'spyne.interface.xml_schema.defn.SchemaBase'>,)
- DEBUG:spyne.model.complex:Got bases for Attribute from meta: (<class 'spyne.interface.xml_schema.defn.SchemaBase'>,)
- DEBUG:spyne.model.complex:Got bases for IntegerAttribute from orig: (<class 'spyne.interface.xml_schema.defn.SchemaBase'>,)
- DEBUG:spyne.model.complex:Got bases for IntegerAttribute from orig: (<class 'spyne.interface.xml_schema.defn.SchemaBase'>,)
- DEBUG:spyne.model.complex:Got bases for StringAttribute from orig: (<class 'spyne.interface.xml_schema.defn.SchemaBase'>,)
- DEBUG:spyne.model.complex:Got bases for Attribute from orig: (<class 'spyne.interface.xml_schema.defn.SchemaBase'>,)
- DEBUG:spyne.model.complex:Got bases for Restriction from meta: (<class 'spyne.interface.xml_schema.defn.SchemaBase'>,)
- DEBUG:spyne.model.complex:Got bases for Element from orig: (<class 'spyne.interface.xml_schema.defn.SchemaBase'>,)
- DEBUG:spyne.model.complex:Got bases for Choice from meta: (<class 'spyne.interface.xml_schema.defn.SchemaBase'>,)
- DEBUG:spyne.model.complex:Got bases for Element from orig: (<class 'spyne.interface.xml_schema.defn.SchemaBase'>,)
- DEBUG:spyne.model.complex:Got bases for Choice from orig: (<class 'spyne.interface.xml_schema.defn.SchemaBase'>,)
- DEBUG:spyne.model.complex:Got bases for Sequence from meta: (<class 'spyne.interface.xml_schema.defn.SchemaBase'>,)
- DEBUG:spyne.model.complex:Got bases for Attribute from orig: (<class 'spyne.interface.xml_schema.defn.SchemaBase'>,)
- DEBUG:spyne.model.complex:Got bases for Extension from meta: (<class 'spyne.interface.xml_schema.defn.SchemaBase'>,)
- DEBUG:spyne.model.complex:Got bases for SimpleContent from meta: (<class 'spyne.interface.xml_schema.defn.SchemaBase'>,)
- DEBUG:spyne.model.complex:Got bases for SimpleContent from orig: (<class 'spyne.interface.xml_schema.defn.SchemaBase'>,)
- DEBUG:spyne.model.complex:Got bases for Attribute from orig: (<class 'spyne.interface.xml_schema.defn.SchemaBase'>,)
- DEBUG:spyne.model.complex:Got bases for ComplexType from meta: (<class 'spyne.interface.xml_schema.defn.SchemaBase'>,)
- DEBUG:spyne.model.complex:Got bases for Include from meta: (<class 'spyne.interface.xml_schema.defn.SchemaBase'>,)
- DEBUG:spyne.model.complex:Got bases for Import from orig: (<class 'spyne.interface.xml_schema.defn.SchemaBase'>,)
- DEBUG:spyne.model.complex:Got bases for Include from orig: (<class 'spyne.interface.xml_schema.defn.SchemaBase'>,)
- DEBUG:spyne.model.complex:Got bases for Element from orig: (<class 'spyne.interface.xml_schema.defn.SchemaBase'>,)
- DEBUG:spyne.model.complex:Got bases for SimpleType from orig: (<class 'spyne.interface.xml_schema.defn.SchemaBase'>,)
- DEBUG:spyne.model.complex:Got bases for ComplexType from orig: (<class 'spyne.interface.xml_schema.defn.SchemaBase'>,)
- DEBUG:spyne.model.complex:Got bases for Attribute from orig: (<class 'spyne.interface.xml_schema.defn.SchemaBase'>,)
- DEBUG:spyne.model.complex:Got bases for XmlSchema10 from meta: (<class 'spyne.interface.xml_schema.defn.SchemaBase'>,)
- DEBUG:spyne.model.complex:Got bases for FileData from meta: (<class 'spyne.model.complex.ComplexModel'>,)
- DEBUG:spyne.model.complex:Got bases for TableModel from meta: (<class 'spyne.model.complex.TTableModelBase.<locals>.TableModelBase'>,)
- DEBUG:spyne.model.complex:Got bases for Permission from meta: (<class 'spyne.model.complex.TableModel'>,)
- DEBUG:spyne.model.complex:Got bases for Array from orig: (<class 'spyne.model.complex.ComplexModelBase'>,)
- DEBUG:spyne.model.complex:Got bases for Permission from orig: (<class 'spyne.model.complex.TableModel'>,)
- DEBUG:spyne.model.complex:Got bases for Array from orig: (<class 'spyne.model.complex.ComplexModelBase'>,)
- DEBUG:spyne.model.complex:Got bases for User from meta: (<class 'spyne.model.complex.TableModel'>,)
- DEBUG:spyne.model.complex:Got bases for Iterable from orig: (<class 'spyne.model.complex.Array'>,)
- DEBUG:spyne.model.complex:Got bases for Permission from orig: (<class 'spyne.model.complex.TableModel'>,)
- DEBUG:spyne.model.complex:Got bases for Iterable from orig: (<class 'spyne.model.complex.Array'>,)
- DEBUG:spyne.model.complex:Got bases for User from orig: (<class 'spyne.model.complex.TableModel'>,)
- DEBUG:spyne.model.complex:Got bases for put_permission from meta: (<class 'spyne.model.complex.ComplexModel'>,)
- DEBUG:spyne.model.complex:Got bases for put_permissionResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
- DEBUG:spyne.model.complex:Got bases for put_user from meta: (<class 'spyne.model.complex.ComplexModel'>,)
- DEBUG:spyne.model.complex:Got bases for put_userResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
- DEBUG:spyne.model.complex:Got bases for del_user from meta: (<class 'spyne.model.complex.ComplexModel'>,)
- DEBUG:spyne.model.complex:Got bases for del_userResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
- DEBUG:spyne.model.complex:Got bases for get_all_permission from meta: (<class 'spyne.model.complex.ComplexModel'>,)
- DEBUG:spyne.model.complex:Got bases for get_all_permissionResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
- DEBUG:spyne.model.complex:Got bases for get_all_user from meta: (<class 'spyne.model.complex.ComplexModel'>,)
- DEBUG:spyne.model.complex:Got bases for get_all_userResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
- DEBUG:spyne.model.complex:Got bases for get_user from meta: (<class 'spyne.model.complex.ComplexModel'>,)
- DEBUG:spyne.model.complex:Got bases for get_userResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
- DEBUG:spyne.model.complex:Got bases for get_permission from meta: (<class 'spyne.model.complex.ComplexModel'>,)
- DEBUG:spyne.model.complex:Got bases for get_permissionResponse from meta: (<class 'spyne.model.complex.ComplexModel'>,)
- DEBUG:spyne.interface._base:populating '__main__.UserManagerService ({spyne.examples.user_manager}UserManagerService)' types...
- DEBUG:spyne.interface._base: enumerating classes for method 'del_user'
- DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.del_user'>" for '{spyne.examples.user_manager}del_user'
- DEBUG:spyne.interface._base: adding del_user.user_id = <class 'spyne.model.primitive.number._BoundedUnsignedInteger'>
- DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.number._BoundedUnsignedInteger'>" for '{http://www.w3.org/2001/XMLSchema}unsignedInt'
- DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.del_userResponse'>" for '{spyne.examples.user_manager}del_userResponse'
- DEBUG:spyne.interface._base: enumerating classes for method 'put_user'
- DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.put_user'>" for '{spyne.examples.user_manager}put_user'
- DEBUG:spyne.interface._base: adding put_user.user = <class '__main__.User'>
- DEBUG:spyne.interface._base: adding class "<class '__main__.User'>" for '{spyne.examples.user_manager}User'
- DEBUG:spyne.interface._base: adding User.user_name = <class 'spyne.model.primitive.string.Unicode'>
- DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{spyne.examples.user_manager}User_user_nameType'
- DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{http://www.w3.org/2001/XMLSchema}string'
- DEBUG:spyne.interface._base: adding User.permissions = <class 'spyne.model.complex.Array'>
- DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.Array'>" for '{spyne.examples.user_manager}PermissionArray'
- DEBUG:spyne.interface._base: adding PermissionArray.Permission = <class '__main__.Permission'>
- DEBUG:spyne.interface._base: adding class "<class '__main__.Permission'>" for '{spyne.examples.user_manager}Permission'
- DEBUG:spyne.interface._base: adding Permission.operation = <class 'spyne.model.primitive.string.Unicode'>
- DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{spyne.examples.user_manager}Permission_operationType'
- DEBUG:spyne.interface._base: adding Permission.id = <class 'spyne.model.primitive.number._BoundedUnsignedInteger'>
- DEBUG:spyne.interface._base: adding Permission.application = <class 'spyne.model.primitive.string.Unicode'>
- DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{spyne.examples.user_manager}Permission_applicationType'
- DEBUG:spyne.interface._base: adding User.id = <class 'spyne.model.primitive.number._BoundedUnsignedInteger'>
- DEBUG:spyne.interface._base: adding User.email = <class 'spyne.model.primitive.string.Unicode'>
- DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{spyne.examples.user_manager}User_emailType'
- DEBUG:spyne.interface._base: adding User.full_name = <class 'spyne.model.primitive.string.Unicode'>
- DEBUG:spyne.interface._base: adding class "<class 'spyne.model.primitive.string.Unicode'>" for '{spyne.examples.user_manager}User_full_nameType'
- DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.put_userResponse'>" for '{spyne.examples.user_manager}put_userResponse'
- DEBUG:spyne.interface._base: adding put_userResponse.put_userResult = <class 'spyne.model.primitive.number.TBoundedUnsignedInteger.<locals>._BoundedUnsignedInteger'>
- DEBUG:spyne.interface._base: enumerating classes for method 'put_permission'
- DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.put_permission'>" for '{spyne.examples.user_manager}put_permission'
- DEBUG:spyne.interface._base: adding put_permission.permission = <class '__main__.Permission'>
- DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.put_permissionResponse'>" for '{spyne.examples.user_manager}put_permissionResponse'
- DEBUG:spyne.interface._base: adding put_permissionResponse.put_permissionResult = <class 'spyne.model.primitive.number.TBoundedUnsignedInteger.<locals>._BoundedUnsignedInteger'>
- DEBUG:spyne.interface._base: enumerating classes for method 'get_all_permission'
- DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.get_all_permission'>" for '{spyne.examples.user_manager}get_all_permission'
- DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.get_all_permissionResponse'>" for '{spyne.examples.user_manager}get_all_permissionResponse'
- DEBUG:spyne.interface._base: adding get_all_permissionResponse.get_all_permissionResult = <class 'spyne.model.complex.Iterable'>
- DEBUG:spyne.interface._base: enumerating classes for method 'get_all_user'
- DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.get_all_user'>" for '{spyne.examples.user_manager}get_all_user'
- DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.get_all_userResponse'>" for '{spyne.examples.user_manager}get_all_userResponse'
- DEBUG:spyne.interface._base: adding get_all_userResponse.get_all_userResult = <class 'spyne.model.complex.Iterable'>
- DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.Iterable'>" for '{spyne.examples.user_manager}UserArray'
- DEBUG:spyne.interface._base: adding UserArray.User = <class '__main__.User'>
- DEBUG:spyne.interface._base: enumerating classes for method 'get_user'
- DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.get_user'>" for '{spyne.examples.user_manager}get_user'
- DEBUG:spyne.interface._base: adding get_user.user_id = <class 'spyne.model.primitive.number._BoundedUnsignedInteger'>
- DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.get_userResponse'>" for '{spyne.examples.user_manager}get_userResponse'
- DEBUG:spyne.interface._base: adding get_userResponse.get_userResult = <class '__main__.User'>
- DEBUG:spyne.interface._base: enumerating classes for method 'get_permission'
- DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.get_permission'>" for '{spyne.examples.user_manager}get_permission'
- DEBUG:spyne.interface._base: adding get_permission.permission_id = <class 'spyne.model.primitive.number._BoundedUnsignedInteger'>
- DEBUG:spyne.interface._base: adding class "<class 'spyne.model.complex.get_permissionResponse'>" for '{spyne.examples.user_manager}get_permissionResponse'
- DEBUG:spyne.interface._base: adding get_permissionResponse.get_permissionResult = <class '__main__.Permission'>
- DEBUG:spyne.interface._base:populating '__main__.UserManagerService' routes...
- DEBUG:spyne.interface._base: adding method UserManagerService.del_user to match '{spyne.examples.user_manager}del_user' tag.
- DEBUG:spyne.interface._base: adding method UserManagerService.put_user to match '{spyne.examples.user_manager}put_user' tag.
- DEBUG:spyne.interface._base: adding method UserManagerService.put_permission to match '{spyne.examples.user_manager}put_permission' tag.
- DEBUG:spyne.interface._base: adding method UserManagerService.get_all_permission to match '{spyne.examples.user_manager}get_all_permission' tag.
- DEBUG:spyne.interface._base: adding method UserManagerService.get_all_user to match '{spyne.examples.user_manager}get_all_user' tag.
- DEBUG:spyne.interface._base: adding method UserManagerService.get_user to match '{spyne.examples.user_manager}get_user' tag.
- DEBUG:spyne.interface._base: adding method UserManagerService.get_permission to match '{spyne.examples.user_manager}get_permission' tag.
- DEBUG:spyne.interface._base:From this point on, you're not supposed to make any changes to the class and method structure of the exposed services.
- DEBUG:spyne.interface.xml_schema:generating schema for targetNamespace='spyne.examples.user_manager', prefix: 'tns' in dir 'C:\\Users\\GOUTHA~1\\AppData\\Local\\Temp\\spyneh0ajw52z'
- DEBUG:spyne.interface.xml_schema:writing 'C:\\Users\\GOUTHA~1\\AppData\\Local\\Temp\\spyneh0ajw52z\\tns.xsd' for ns spyne.examples.user_manager
- DEBUG:spyne.interface.xml_schema:Schema built. Removed 'C:\\Users\\GOUTHA~1\\AppData\\Local\\Temp\\spyneh0ajw52z'
- DEBUG:spyne.util.appreg:Registering <__main__.MyApplication object at 0x000000000549B5C0> as ('spyne.examples.user_manager', 'MyApplication')
- INFO:sqlalchemy.engine.base.Engine:SELECT CAST('test plain returns' AS VARCHAR(60)) AS anon_1
- INFO:sqlalchemy.engine.base.Engine:()
- INFO:sqlalchemy.engine.base.Engine:SELECT CAST('test unicode returns' AS VARCHAR(60)) AS anon_1
- INFO:sqlalchemy.engine.base.Engine:()
- INFO:sqlalchemy.engine.base.Engine:PRAGMA table_info("permission")
- INFO:sqlalchemy.engine.base.Engine:()
- INFO:sqlalchemy.engine.base.Engine:PRAGMA table_info("user")
- INFO:sqlalchemy.engine.base.Engine:()
- INFO:sqlalchemy.engine.base.Engine:PRAGMA table_info("user_permissions")
- INFO:sqlalchemy.engine.base.Engine:()
- INFO:sqlalchemy.engine.base.Engine:
- CREATE TABLE permission (
- operation TEXT,
- id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
- application TEXT
- )
- INFO:sqlalchemy.engine.base.Engine:()
- INFO:sqlalchemy.engine.base.Engine:COMMIT
- INFO:sqlalchemy.engine.base.Engine:
- CREATE TABLE user (
- user_name VARCHAR(32),
- id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
- email VARCHAR(64),
- full_name VARCHAR(64)
- )
- INFO:sqlalchemy.engine.base.Engine:()
- INFO:sqlalchemy.engine.base.Engine:COMMIT
- INFO:sqlalchemy.engine.base.Engine:
- CREATE TABLE user_permissions (
- user_id INTEGER,
- permissions_id INTEGER,
- PRIMARY KEY (user_id, permissions_id),
- FOREIGN KEY(user_id) REFERENCES user (id),
- CONSTRAINT permission_permissions_id_fkey FOREIGN KEY(permissions_id) REFERENCES permission (id)
- )
- INFO:sqlalchemy.engine.base.Engine:()
- INFO:sqlalchemy.engine.base.Engine:COMMIT
- INFO:root:listening to http://127.0.0.1:8000
- INFO:root:wsdl is at: http://localhost:8000/?wsdl
- 127.0.0.1 - - [02/Dec/2015 16:24:15] "GET /?wsdl HTTP/1.1" 200 11492
- DEBUG:spyne.protocol.soap.soap11:ValueError: Deserializing from unicode strings with encoding declaration is not supported by lxml.
- DEBUG:spyne.protocol.xml:Validated ? True
- DEBUG:spyne.protocol.xml:[1;32mMethod request string:[0m {spyne.examples.user_manager}put_permission
- DEBUG:spyne.protocol.xml:b'<SOAP-ENV:Envelope xmlns:ns0="spyne.examples.user_manager" xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">\n <SOAP-ENV:Header/>\n <ns1:Body>\n <ns0:put_permission>\n <ns0:permission>\n <ns0:operation>modify</ns0:operation>\n <ns0:application>usermgr</ns0:application>\n </ns0:permission>\n </ns0:put_permission>\n </ns1:Body>\n</SOAP-ENV:Envelope>\n'
- INFO:sqlalchemy.engine.base.Engine:BEGIN (implicit)
- INFO:sqlalchemy.engine.base.Engine:INSERT INTO permission (operation, application) VALUES (?, ?)
- INFO:sqlalchemy.engine.base.Engine:('modify', 'usermgr')
- DEBUG:spyne.protocol.xml:[1;31mResponse[0m b'<soap11env:Envelope xmlns:soap11env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="spyne.examples.user_manager">\n <soap11env:Body>\n <tns:put_permissionResponse>\n <tns:put_permissionResult>1</tns:put_permissionResult>\n </tns:put_permissionResponse>\n </soap11env:Body>\n</soap11env:Envelope>\n'
- INFO:sqlalchemy.engine.base.Engine:COMMIT
- 127.0.0.1 - - [02/Dec/2015 16:24:51] "POST / HTTP/1.1" 200 324
- DEBUG:spyne.protocol.soap.soap11:ValueError: Deserializing from unicode strings with encoding declaration is not supported by lxml.
- DEBUG:spyne.protocol.xml:Validated ? True
- DEBUG:spyne.protocol.xml:[1;32mMethod request string:[0m {spyne.examples.user_manager}put_permission
- DEBUG:spyne.protocol.xml:b'<SOAP-ENV:Envelope xmlns:ns0="spyne.examples.user_manager" xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">\n <SOAP-ENV:Header/>\n <ns1:Body>\n <ns0:put_permission>\n <ns0:permission>\n <ns0:operation>read</ns0:operation>\n <ns0:application>accountmgr</ns0:application>\n </ns0:permission>\n </ns0:put_permission>\n </ns1:Body>\n</SOAP-ENV:Envelope>\n'
- INFO:sqlalchemy.engine.base.Engine:BEGIN (implicit)
- INFO:sqlalchemy.engine.base.Engine:INSERT INTO permission (operation, application) VALUES (?, ?)
- INFO:sqlalchemy.engine.base.Engine:('read', 'accountmgr')
- DEBUG:spyne.protocol.xml:[1;31mResponse[0m b'<soap11env:Envelope xmlns:soap11env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="spyne.examples.user_manager">\n <soap11env:Body>\n <tns:put_permissionResponse>\n <tns:put_permissionResult>2</tns:put_permissionResult>\n </tns:put_permissionResponse>\n </soap11env:Body>\n</soap11env:Envelope>\n'
- INFO:sqlalchemy.engine.base.Engine:COMMIT
- 127.0.0.1 - - [02/Dec/2015 16:25:38] "POST / HTTP/1.1" 200 324
- DEBUG:spyne.protocol.soap.soap11:ValueError: Deserializing from unicode strings with encoding declaration is not supported by lxml.
- DEBUG:spyne.protocol.xml:Validated ? True
- DEBUG:spyne.protocol.xml:[1;32mMethod request string:[0m {spyne.examples.user_manager}put_user
- DEBUG:spyne.protocol.xml:b'<SOAP-ENV:Envelope xmlns:ns0="spyne.examples.user_manager" xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">\n <SOAP-ENV:Header/>\n <ns1:Body>\n <ns0:put_user>\n <ns0:user>\n <ns0:user_name>abcd</ns0:user_name>\n <ns0:permissions>\n <ns0:Permission>\n <ns0:operation>modify</ns0:operation>\n <ns0:id>1</ns0:id>\n <ns0:application>usermgr</ns0:application>\n </ns0:Permission>\n <ns0:Permission>\n <ns0:operation>read</ns0:operation>\n <ns0:id>2</ns0:id>\n <ns0:application>accountmgr</ns0:application>\n </ns0:Permission>\n </ns0:permissions>\n <ns0:email>[email protected]</ns0:email>\n <ns0:full_name>abcd xyz</ns0:full_name>\n </ns0:user>\n </ns0:put_user>\n </ns1:Body>\n</SOAP-ENV:Envelope>\n'
- INFO:sqlalchemy.engine.base.Engine:BEGIN (implicit)
- INFO:sqlalchemy.engine.base.Engine:INSERT INTO permission (operation, id, application) VALUES (?, ?, ?)
- INFO:sqlalchemy.engine.base.Engine:(('modify', 1, 'usermgr'), ('read', 2, 'accountmgr'))
- INFO:sqlalchemy.engine.base.Engine:ROLLBACK
- ERROR:root:(sqlite3.IntegrityError) UNIQUE constraint failed: permission.id [SQL: 'INSERT INTO permission (operation, id, application) VALUES (?, ?, ?)'] [parameters: (('modify', 1, 'usermgr'), ('read', 2, 'accountmgr'))]
- Traceback (most recent call last):
- File "C:\Python34\lib\site-packages\sqlalchemy\engine\base.py", line 1116, in _execute_context
- context)
- File "C:\Python34\lib\site-packages\sqlalchemy\engine\default.py", line 447, in do_executemany
- cursor.executemany(statement, parameters)
- sqlite3.IntegrityError: UNIQUE constraint failed: permission.id
- The above exception was the direct cause of the following exception:
- Traceback (most recent call last):
- File "D:\Projects\urpy\server_sqlalchemy2.py", line 180, in call_wrapper
- return ctx.service_class.call_wrapper(ctx)
- File "C:\Python34\lib\site-packages\spyne\service.py", line 209, in call_wrapper
- return ctx.function(ctx, *args)
- File "D:\Projects\urpy\server_sqlalchemy2.py", line 118, in put_user
- ctx.udc.session.flush() # so that we get the user.id value
- File "C:\Python34\lib\site-packages\sqlalchemy\orm\session.py", line 2015, in flush
- self._flush(objects)
- File "C:\Python34\lib\site-packages\sqlalchemy\orm\session.py", line 2133, in _flush
- transaction.rollback(_capture_exception=True)
- File "C:\Python34\lib\site-packages\sqlalchemy\util\langhelpers.py", line 60, in __exit__
- compat.reraise(exc_type, exc_value, exc_tb)
- File "C:\Python34\lib\site-packages\sqlalchemy\util\compat.py", line 182, in reraise
- raise value
- File "C:\Python34\lib\site-packages\sqlalchemy\orm\session.py", line 2097, in _flush
- flush_context.execute()
- File "C:\Python34\lib\site-packages\sqlalchemy\orm\unitofwork.py", line 373, in execute
- rec.execute(self)
- File "C:\Python34\lib\site-packages\sqlalchemy\orm\unitofwork.py", line 532, in execute
- uow
- File "C:\Python34\lib\site-packages\sqlalchemy\orm\persistence.py", line 174, in save_obj
- mapper, table, insert)
- File "C:\Python34\lib\site-packages\sqlalchemy\orm\persistence.py", line 752, in _emit_insert_statements
- execute(statement, multiparams)
- File "C:\Python34\lib\site-packages\sqlalchemy\engine\base.py", line 914, in execute
- return meth(self, multiparams, params)
- File "C:\Python34\lib\site-packages\sqlalchemy\sql\elements.py", line 323, in _execute_on_connection
- return connection._execute_clauseelement(self, multiparams, params)
- File "C:\Python34\lib\site-packages\sqlalchemy\engine\base.py", line 1010, in _execute_clauseelement
- compiled_sql, distilled_params
- File "C:\Python34\lib\site-packages\sqlalchemy\engine\base.py", line 1146, in _execute_context
- context)
- File "C:\Python34\lib\site-packages\sqlalchemy\engine\base.py", line 1341, in _handle_dbapi_exception
- exc_info
- File "C:\Python34\lib\site-packages\sqlalchemy\util\compat.py", line 188, in raise_from_cause
- reraise(type(exception), exception, tb=exc_tb, cause=exc_value)
- File "C:\Python34\lib\site-packages\sqlalchemy\util\compat.py", line 181, in reraise
- raise value.with_traceback(tb)
- File "C:\Python34\lib\site-packages\sqlalchemy\engine\base.py", line 1116, in _execute_context
- context)
- File "C:\Python34\lib\site-packages\sqlalchemy\engine\default.py", line 447, in do_executemany
- cursor.executemany(statement, parameters)
- sqlalchemy.exc.IntegrityError: (sqlite3.IntegrityError) UNIQUE constraint failed: permission.id [SQL: 'INSERT INTO permission (operation, id, application) VALUES (?, ?, ?)'] [parameters: (('modify', 1, 'usermgr'), ('read', 2, 'accountmgr'))]
- ERROR:spyne.application:Fault(Server: 'InternalError: An unknown error has occured.')
- Traceback (most recent call last):
- File "C:\Python34\lib\site-packages\sqlalchemy\engine\base.py", line 1116, in _execute_context
- context)
- File "C:\Python34\lib\site-packages\sqlalchemy\engine\default.py", line 447, in do_executemany
- cursor.executemany(statement, parameters)
- sqlite3.IntegrityError: UNIQUE constraint failed: permission.id
- The above exception was the direct cause of the following exception:
- Traceback (most recent call last):
- File "D:\Projects\urpy\server_sqlalchemy2.py", line 180, in call_wrapper
- return ctx.service_class.call_wrapper(ctx)
- File "C:\Python34\lib\site-packages\spyne\service.py", line 209, in call_wrapper
- return ctx.function(ctx, *args)
- File "D:\Projects\urpy\server_sqlalchemy2.py", line 118, in put_user
- ctx.udc.session.flush() # so that we get the user.id value
- File "C:\Python34\lib\site-packages\sqlalchemy\orm\session.py", line 2015, in flush
- self._flush(objects)
- File "C:\Python34\lib\site-packages\sqlalchemy\orm\session.py", line 2133, in _flush
- transaction.rollback(_capture_exception=True)
- File "C:\Python34\lib\site-packages\sqlalchemy\util\langhelpers.py", line 60, in __exit__
- compat.reraise(exc_type, exc_value, exc_tb)
- File "C:\Python34\lib\site-packages\sqlalchemy\util\compat.py", line 182, in reraise
- raise value
- File "C:\Python34\lib\site-packages\sqlalchemy\orm\session.py", line 2097, in _flush
- flush_context.execute()
- File "C:\Python34\lib\site-packages\sqlalchemy\orm\unitofwork.py", line 373, in execute
- rec.execute(self)
- File "C:\Python34\lib\site-packages\sqlalchemy\orm\unitofwork.py", line 532, in execute
- uow
- File "C:\Python34\lib\site-packages\sqlalchemy\orm\persistence.py", line 174, in save_obj
- mapper, table, insert)
- File "C:\Python34\lib\site-packages\sqlalchemy\orm\persistence.py", line 752, in _emit_insert_statements
- execute(statement, multiparams)
- File "C:\Python34\lib\site-packages\sqlalchemy\engine\base.py", line 914, in execute
- return meth(self, multiparams, params)
- File "C:\Python34\lib\site-packages\sqlalchemy\sql\elements.py", line 323, in _execute_on_connection
- return connection._execute_clauseelement(self, multiparams, params)
- File "C:\Python34\lib\site-packages\sqlalchemy\engine\base.py", line 1010, in _execute_clauseelement
- compiled_sql, distilled_params
- File "C:\Python34\lib\site-packages\sqlalchemy\engine\base.py", line 1146, in _execute_context
- context)
- File "C:\Python34\lib\site-packages\sqlalchemy\engine\base.py", line 1341, in _handle_dbapi_exception
- exc_info
- File "C:\Python34\lib\site-packages\sqlalchemy\util\compat.py", line 188, in raise_from_cause
- reraise(type(exception), exception, tb=exc_tb, cause=exc_value)
- File "C:\Python34\lib\site-packages\sqlalchemy\util\compat.py", line 181, in reraise
- raise value.with_traceback(tb)
- File "C:\Python34\lib\site-packages\sqlalchemy\engine\base.py", line 1116, in _execute_context
- context)
- File "C:\Python34\lib\site-packages\sqlalchemy\engine\default.py", line 447, in do_executemany
- cursor.executemany(statement, parameters)
- sqlalchemy.exc.IntegrityError: (sqlite3.IntegrityError) UNIQUE constraint failed: permission.id [SQL: 'INSERT INTO permission (operation, id, application) VALUES (?, ?, ?)'] [parameters: (('modify', 1, 'usermgr'), ('read', 2, 'accountmgr'))]
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "C:\Python34\lib\site-packages\spyne\application.py", line 151, in process_request
- ctx.out_object = self.call_wrapper(ctx)
- File "D:\Projects\urpy\server_sqlalchemy2.py", line 191, in call_wrapper
- raise InternalError(e)
- spyne.error.InternalError: Fault(Server: 'InternalError: An unknown error has occured.')
- DEBUG:spyne.protocol.xml:[1;31mResponse[0m b'<soap11env:Envelope xmlns:soap11env="http://schemas.xmlsoap.org/soap/envelope/">\n <soap11env:Body>\n <soap11env:Fault>\n <faultcode>soap11env:Server</faultcode>\n <faultstring>InternalError: An unknown error has occured.</faultstring>\n <faultactor></faultactor>\n </soap11env:Fault>\n </soap11env:Body>\n</soap11env:Envelope>\n'
- Traceback (most recent call last):
- File "C:\Python34\lib\wsgiref\handlers.py", line 137, in run
- self.result = application(self.environ, self.start_response)
- File "C:\Python34\lib\site-packages\spyne\server\wsgi.py", line 244, in __call__
- return self.handle_rpc(req_env, start_response)
- File "C:\Python34\lib\site-packages\spyne\server\wsgi.py", line 365, in handle_rpc
- start_response)
- File "C:\Python34\lib\site-packages\spyne\server\wsgi.py", line 339, in handle_error
- return itertools.chain(p_ctx.out_string, self.__finalize(p_ctx))
- File "C:\Python34\lib\site-packages\spyne\server\wsgi.py", line 447, in __finalize
- p_ctx.close()
- File "C:\Python34\lib\site-packages\spyne\_base.py", line 381, in close
- self.app.event_manager.fire_event("method_context_closed", self)
- File "C:\Python34\lib\site-packages\spyne\_base.py", line 613, in fire_event
- handler(ctx, *args, **kwargs)
- File "D:\Projects\urpy\server_sqlalchemy2.py", line 164, in _on_method_context_closed
- ctx.udc.session.commit()
- File "C:\Python34\lib\site-packages\sqlalchemy\orm\session.py", line 801, in commit
- self.transaction.commit()
- File "C:\Python34\lib\site-packages\sqlalchemy\orm\session.py", line 390, in commit
- self._assert_active(prepared_ok=True)
- File "C:\Python34\lib\site-packages\sqlalchemy\orm\session.py", line 214, in _assert_active
- % self._rollback_exception
- sqlalchemy.exc.InvalidRequestError: This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original exception was: (sqlite3.IntegrityError) UNIQUE constraint failed: permission.id [SQL: 'INSERT INTO permission (operation, id, application) VALUES (?, ?, ?)'] [parameters: (('modify', 1, 'usermgr'), ('read', 2, 'accountmgr'))]
- 127.0.0.1 - - [02/Dec/2015 16:26:45] "POST / HTTP/1.1" 500 59
Add Comment
Please, Sign In to add comment