From: Brian M. <bri...@us...> - 2007-11-01 15:17:40
|
The following (portions of) WSDL files are valid and equivalent, however assertXMLEqual does not seem to allow for unordered lists of elements. (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.) 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> Would it be acceptable to patch XMLUnit to allow these two comparisons (the strings and WSDL files) to pass? Is that work already underway? If I create the patch, how can I submit it?? Thank you, Brian Murray Software Engineer, WebSphere Application Server Development IBM Corporation, 4205 S Miami Blvd, Durham NC 27709 (919) 486-2087 |