From: Stefan B. <bo...@ap...> - 2007-11-02 05:28:00
|
On Thu, 1 Nov 2007, Brian Murray <bri...@us...> wrote: > The following (portions of) WSDL files are valid and equivalent, > however assertXMLEqual does not seem to allow for unordered lists of > elements. It does, it just needs to know which elements to match against each other, see: <http://xmlunit.sourceforge.net/userguide/html/ar01s03.html#ElementQualifier>. > (i.e. assertXMLEqual on "<test><foo>abc</foo><foo>123</foo></test>" > and "<test><foo>123</foo><foo>abc</foo></test>" would result in an > AssetionFailedError.) Not if you used an ElementNameAndTextQualifier. > WSDL File 1: > > <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" > xmlns:ns0="http://tempuri.org" targetNamespace="http://tempuri.org"> > > <wsdl:message name="retUIntRequest"> > <wsdl:part name="parameters" element="ns0:retUInt"/> > </wsdl:message> > > <wsdl:message name="retByteArrayRequest"> > <wsdl:part name="parameters" element="ns0:retByteArray"/> > </wsdl:message> > > </wsdl:definitions> > > WSDL File 2: > > <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" > xmlns:ns0="http://tempuri.org" targetNamespace="http://tempuri.org"> > > <wsdl:message name="retByteArrayRequest"> > <wsdl:part name="parameters" element="ns0:retByteArray"/> > </wsdl:message> > > <wsdl:message name="retUIntRequest"> > <wsdl:part name="parameters" element="ns0:retUInt"/> > </wsdl:message> > > </wsdl:definitions> Should probably pass with an ElementNameAndAttributeQualifier. > Would it be acceptable to patch XMLUnit to allow these two > comparisons (the strings and WSDL files) to pass? I think it already supports what you need. > Is that work already underway? If I create the patch, how can I > submit it?? Either send it here or open a feature request/bug report and attach it there. Cheers Stefan |