I build a control xml and i receive from the web service another identical xml with the same namespaces,
and I get the following errors:
Expected namespace URI 'http://fs.ordina.com/FundService/1/0' but was 'http://fund.domain.webservice.fs.ordina.com' - comparing <administratorAddress...> at /Envelope[1]/Body[1]/findResponse[1]/out[1]/fund[1]/administratorAddress[1] to <administratorAddress...> at /Envelope[1]/Body[1]/findResponse[1]/out[1]/fund[1]/administratorAddress[1]
I guess this is an issue regarding the way namespaces are used.
Any ideas?
Kind regards,
Robert.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I have the following xml snippet:
...
<out>
<errors xmlns="http://fund.domain.webservice.fs.xyz.com" xsi:nil="true"/>
<fund xmlns="http://fund.domain.webservice.fs.xyz.com">
<administratorAddress xsi:nil="true" xmlns="http://fs.xyz.com/FundService/1/0"/>
<administratorCity xsi:nil="true" xmlns="http://fs.xyz.com/FundService/1/0"/>
....
I build a control xml and i receive from the web service another identical xml with the same namespaces,
and I get the following errors:
Expected namespace URI 'http://fs.ordina.com/FundService/1/0' but was 'http://fund.domain.webservice.fs.ordina.com' - comparing <administratorAddress...> at /Envelope[1]/Body[1]/findResponse[1]/out[1]/fund[1]/administratorAddress[1] to <administratorAddress...> at /Envelope[1]/Body[1]/findResponse[1]/out[1]/fund[1]/administratorAddress[1]
I guess this is an issue regarding the way namespaces are used.
Any ideas?
Kind regards,
Robert.
I don't think there is a bug in XMLUnit's namespace handling (there could certainly be, but I've seen it work well so far).
What does your test document look like?