Browse Source

----------------------------------------------------------------------

Modified Files:
 	Namespaces.py
        -- added Oasis base notification ns.
        XMLSchema.py
        -- modified an exception message.
 ----------------------------------------------------------------------
main
Joshua Boverhof 20 years ago
parent
commit
0ef7cbcfee
2 changed files with 3 additions and 3 deletions
  1. +1
    -0
      Namespaces.py
  2. +2
    -3
      XMLSchema.py

+ 1
- 0
Namespaces.py View File

@@ -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"


+ 2
- 3
XMLSchema.py View File

@@ -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):


Loading…
Cancel
Save