}
public void testWSDLNamespaces() throws Exception {
URL wsdl = this.getClass().getClassLoader().getResource("data/header.wsdl");
System.out.println("WSDL="+wsdl);
XMLStreamBufferResult xsbr = new XMLStreamBufferResult();
SAXParserFactory spf = SAXParserFactory.newInstance();
spf.setNamespaceAware(true);
XMLReader xmlReader = spf.newSAXParser().getXMLReader();
TransformerHandler transformerHandler = ((SAXTransformerFactory) TransformerFactory.newInstance()).newTransformerHandler();
transformerHandler.setResult(xsbr);
xmlReader.setContentHandler(transformerHandler);
xmlReader.parse(wsdl.toExternalForm());
XMLStreamBuffer xsb = xsbr.getXMLStreamBuffer();
XMLStreamReader rdr = XMLInputFactory.newInstance().createXMLStreamReader(wsdl.openStream());
XMLStreamReader xsbrdr = xsb.readAsXMLStreamReader();
compareReaderQNames(rdr, xsbrdr, "wsdl", "soap", "xsd");
}