Drewmart
14 years agoNew Contributor
JSON to XML with no namespaces
When SoapUI converts a JSON message to XML for XPath searching, is there a way to disable namespaces in the XML?
For example, I end up with an XML message like:
<Response xmlns="http://localhost/my/path/here/">
But if I generate tests based on this XML they have this namespace hard-coded. Then, if I run the tests on another server (e.g. 192.168.101.101) the namespace is different and the assertion will fail. If I didn't have to worry about namespaces in the first place, this would be a non-issue. Is there any way to turn it off (so that it ends up looking like <Response>)?
For example, I end up with an XML message like:
<Response xmlns="http://localhost/my/path/here/">
But if I generate tests based on this XML they have this namespace hard-coded. Then, if I run the tests on another server (e.g. 192.168.101.101) the namespace is different and the assertion will fail. If I didn't have to worry about namespaces in the first place, this would be a non-issue. Is there any way to turn it off (so that it ends up looking like <Response>)?