[XML-SIG] WSDL Test Suite?

Uche Ogbuji uche.ogbuji@fourthought.com
Sat, 01 Mar 2003 18:15:43 -0700

> On Thursday 27 February 2003 11:53 am, M.-A. Lemburg wrote:
> > Mark Bucciarelli wrote:
> > > Looks like I've got soapy parsing WSDL using only native Python 2
> > > libraries.
> [...]
> > Did you have to make any changes to soapy to get it up and
> > running ?
> A few minor ones.  
> - element.getAttributeNS('', 'name') had to be replaced by 
> getAttribute('name').  Did the Python API change?

See my other messages on this.

> - namespaces had to be added
> - use xml.dom.minidom instead of a PyExpat.Reader()
> - a couple for loops needed to be changed.  soap.py had stuff like this: 
> 	for attrns, attrkey in node.attributes.keys(): 
> that I couldn't get to work.  Did the python API change?

You couldn't get that to work with minidom?

>>> from xml.dom.minidom import parseString
>>> doc = parseString('<spam eggs="a"/>')
>>> e = doc.documentElement
>>> e.attributes.items()
[(u'eggs', u'a')]
>>> e.attributes.keys()

> When I test it a bit more, I'll post the updated version and try to contact 
> Adam Elman, the author.
> I'd like to better understand how to deal with all the various namespace 
> URI's; for example, it looks like xsd has had at least three different URI's:
> www.w3.org/1999/XMLSchema
> www.w3.org/2000/10/XMLSchema
> www.w3.org/2001/XMLSchema

These were all intermediate drafts of XSD.  No one should be using the older 
namespaces.  I think SOAPy should eliminate the older ones.

> There are similar multiples for the soap, enc, xsi prefixes.

Ditto xsi.  SOAP and SOAP-ENC, however, are different matters.  The Web 
services folks shot themselves in the foot by callign several releases 
"ready", and so there are generally 2 sets of namespaces, both of which realy 
need to be honored in practice.

> From my 
> reading, I would assume that a properly formed WSDL doc (and SOAP doc) will 
> specify what URI to associate with each prefix.

No no no.  This URI specified in the interface def is fo the app-specific 
nmespace, not for the SOAP and XSD namespaces, which come from standardization.

Uche Ogbuji                                    Fourthought, Inc.
http://uche.ogbuji.net    http://4Suite.org    http://fourthought.com
The open office file format  - http://www-106.ibm.com/developerworks/xml/librar
4Suite Repository Features - https://www6.software.ibm.com/reg/devworks/dw-x4su
XML class warfare - http://www.adtmag.com/article.asp?id=6965
See you at XML Web Services One - http://www.xmlconference.com/santaclara/