Modified Files:
WSDLTools.py -- qualified Names are now stored as tuples (namespace, localName).
These tuples are used as keys into CollectionNS instances.
----------------------------------------------------------------------
Modified Files:
XMLSchema.py -- fixed a few problem with the XML namespace, mainly
affecting the use of 'xml:lang'. Fixed a bug identifying
attributeGroup references vs. definitions. Also changed the
inheritance of MarkerInterface, and moved the classes involved
before all Schema classes.
Now will parse "XML Schema Part 1: Structures", and
"XML Schema Part 2: Datatypes" XML Schema definitions.
----------------------------------------------------------------------
Modified Files:
Utility.py -- added a CollectionNS class that keys items via
(targetNamespace, name).
WSDLTools.py --
Made WSDL Collections into CollectionNS instances,
this fixes problem with collisions, caused by wsdl:imports,
between items with same name but defined in different
targetNamespaces. So now all items can be accessed via
(namespace,name), but ONLY those items defined in
WSDL.targetNamepsace (not an import.targetNamespace) can
be accessed using just 'name'.
Also changed how portType is "loaded". Now instead of
dropping all the operation nodes in "load", I drop
the portType node into "load". This makes sense because
portType really should know about itself, and the
XML Schema definition of "portType" includes an "anyAttribute"
and I need to make this stuff available. I may change the
other WSDL information items to do this to be consistent.
----------------------------------------------------------------------
Modified Files:
WSDLTools.py - small fix for the creation of the output parameters,
to enable return messages to be properly typecoded.
----------------------------------------------------------------------
Modified Files:
Utility.py -- fixed bug in _clone_node patch. This method
was being called with qualifiedName for namespaced attributes,
and bombing. It is supposed to be called like so:
getAttributeNodeNS(self, namespaceURI, localName)
Really could remove the if/else clause here but I
decided to leave it there just to keep the 3 distinctions
in the code.
----------------------------------------------------------------------
Modified Files:
XMLSchema.py -- added substutionGroup to the list of attributes
that can be specified in an ElementDeclaration.
----------------------------------------------------------------------
Modified Files:
WSDLTools.py -- partial bug fix for [ 850905 ] wsdl2py crash on a more sophisticated WSDL.
We do expect a list, but nmtokens is a list separated by a single space. So if
"parts" is a string, the just split it to create a list.
----------------------------------------------------------------------
Modified Files:
XMLSchema.py -- If a schema needs to 'create' a schema instance
itself it adds this schema to its import dictionary.
----------------------------------------------------------------------
Modified Files:
XMLSchema.py -- error in Import class for accessing a schemaLocation.
This bug would only show up if a schema had to 'construct' a
schema instance of a different namespace itself. Basically the
last option.
----------------------------------------------------------------------
Modified Files:
XMLSchema.py -- fixed an unknown bug caused by overlooking
the potential namespace contents of a "types" node.
----------------------------------------------------------------------
Modified Files:
Utility.py
WSDLTools.py
XMLSchema.py
-- Fixed [ 810251 ] default method broken in wstools.Utility.Collection
-- Also fixed problem with includes Collection key, and changed
Types(Collection) class to declare a different default key instead
of redefining several methods.
----------------------------------------------------------------------
Modified Files:
WSDLTools.py
XMLSchema.py
-- Fixed [ 808505 ] ZSI fails with <xs:include ... />
Now schema include statements should be handled correctly.
-- Also fixed a problem with relative uri handling for XMLSchema
and SchemaReader.
----------------------------------------------------------------------
Modified Files:
XMLSchema.py -- now we get reasonable error message back when
import or include is incorrectly defined.
File "/usr/local/lib/python2.3/site-packages/ZSI/wstools/XMLSchema.py", line 478, in __checkAttributes
raise SchemaError, '%s, unknown attribute' %a
ZSI.wstools.XMLSchema.SchemaError: location, unknown attribute
----------------------------------------------------------------------
those with only simple types, those with complex types, those with
WSDLReader errors, and those with wsdl2python errors. The last
contain mostly those that are raised by that module.
Modified Files:
XMLSchema.py -- fixed two places where 'readFromURL' was supposed
to be loadFromURL.
----------------------------------------------------------------------
Modified Files:
XMLSchema.py -- added a try clause to catch xml.dom.ext ImportError,
and added a SplitQName function that matches xml.dom.ext.SplitQName
output.
----------------------------------------------------------------------
Modified Files:
README config.py test_t1.py test_wsdl.py xmethods.tar.gz
Added a couple tests and an explanation of how to add new
tests.
----------------------------------------------------------------------
Modified Files:
WSDLTools.py -- added a line in Reader to to set WSDL.location
for files so that imports with relative paths will work for
file paths as well as urls.
XMLSchema.py -- a couple Attribute fixes, and the WSDLAdapter
wasn't passing it's parent into the XMLSchemaComponent
constructor which was messing up import lookups.
----------------------------------------------------------------------