diff --git a/Namespaces.py b/Namespaces.py index 1082397..eb6f5f5 100755 --- a/Namespaces.py +++ b/Namespaces.py @@ -77,6 +77,7 @@ class OASIS: UTILITY = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" LIFETIME = "http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.xsd" PROPERTIES = "http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl" + BASENOTIFICATION = "http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd" class WSSE: BASE = "http://schemas.xmlsoap.org/ws/2002/04/secext" diff --git a/XMLSchema.py b/XMLSchema.py index ffc480c..3894791 100755 --- a/XMLSchema.py +++ b/XMLSchema.py @@ -671,9 +671,8 @@ class XMLSchemaComponent(XMLBase, MarkerInterface): if (a not in (XMLSchemaComponent.xmlns, XMLNS.XML)) and\ (a not in self.__class__.attributes.keys()) and not\ (self.isAttribute() and self.isReference()): - if self.attributes.has_key(a): - raise SchemaError, '%s, unknown namespaced(%s) attribute(s) %s' %(self.getItemTrace(), a,self.attributes[a]) - raise SchemaError, '%s, unknown attribute %s' %(self.getItemTrace(), a) + raise SchemaError, '%s, unknown attribute(%s,%s)' \ + %(self.getItemTrace(), a, self.attributes[a]) class WSDLToolsAdapter(XMLSchemaComponent):