Hello,
In these splitters tests:
XMLInputSplitterTest.testOptional()
XMLInputSplitterTest.testNillable()
there is a hardcoded assertion:
assertTrue(xml.contains("<block xmlns=\"\"></block>"));
Actually the xmlns="" is generated by XMLInputSplitter because of an
ERROR in AXIS...
WSOi.wsdl line #79
<element name="block" type="vso:QueryRequestBlock" />
defines block in default namespace
(targetNamespace="http://virtualsolar.org/VSO/VSOi");
Somewhere ElementDecl loses the namespace el.getQName() =
{""}QueryRequest>block
That leads to the incorrect XML
<body xmlns="http://virtualsolar.org/VSO/VSOi"><version xmlns=""
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"
/><block xmlns=""></block></body>
Quick fix would be to replace
assertTrue(xml.contains("<block xmlns=\"\"></block>"));
with
assertTrue(xml.matches("[\\w\\W]+<block(
xmlns=\\u0022\\u0022)?></block>[\\w\\W]+"));
Again, xmlns="" is wrong, but I see no way to quick fix AXIS...
Cheers,
Dmitry
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
taverna-hackers mailing list
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/about/contact-us/
Developers Guide: http://www.taverna.org.uk/developers/