Menu

namespace issue

2008-02-13
2013-03-03
  • robert pasztor

    robert pasztor - 2008-02-13

    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.

     
    • Stefan Bodewig

      Stefan Bodewig - 2008-02-28

      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?

       

Log in to post a comment.