turman
11 years agoOccasional Contributor
Conversion from JSON to XML
Hi,
I'm using SoapUI 5.0 to do some non regression tests on REST/JSON services.
SoapUI can convert automatically JSON responses into XML responses. With that functionaly, I can perform some "XPath match" assertions on JSON response, that's great !
It works pretty well on my project but for an unknown reason, I have one service whose JSON response is not converted into XML :
The JSON is :
With that JSON response the converted XML is :
Any one has an idea why conversion fails ?
For me it looks like a bug because the JSON looks normal...
Thanks for your help,
Vincent.
I'm using SoapUI 5.0 to do some non regression tests on REST/JSON services.
SoapUI can convert automatically JSON responses into XML responses. With that functionaly, I can perform some "XPath match" assertions on JSON response, that's great !
It works pretty well on my project but for an unknown reason, I have one service whose JSON response is not converted into XML :
The JSON is :
{
"data": [
{
"id": 1,
"name": "Gluar1",
"description": "",
"type": {
"id": 1,
"value": "Account Manager"
}
},
{
"id": 671,
"name": "Gluar2",
"description": "",
"type": {
"id": 2,
"value": "Product Manager"
}
}
],
"metadata": {"errors": []}
}
With that JSON response the converted XML is :
<xml/>
Any one has an idea why conversion fails ?
For me it looks like a bug because the JSON looks normal...
Thanks for your help,
Vincent.