-
Bug
-
Resolution: Not a Bug
-
Major
-
None
-
None
-
None
-
True
-
None
-
False
-
Documentation (Ref Guide, User Guide, etc.), Release Notes, Compatibility/Configuration, User Experience
-
%
-
-
Todo
-
While mapping from json to xml,
JSON:
{ "lock": [ \{ "name": "?", "value": "?" } ],
"hold": [
{
"name": "hold",
"value": "0"
}
]
}{{}}
XML:
<unn:lock>
<!-1 or more repetitions:->
<unn:item>
<unn:name>?</unn:name>
<unn:value>?</unn:value>
</unn:item>
</unn:lock>
<unn:hold>
<!-1 or more repetitions:->
<unn:item>
<unn:name>?</unn:name>
<unn:value>?</unn:value>
</unn:item>
</unn:hold>{{}}
We're mapping lock(collection)/name to lock/item(collection)/name and lock(collection)/value to lock/item(collection)/value. Simarly for hold.
In case that we don't send lock in our json request, we're getting an empty tag for it.
Current output:
<lock/>
<hold>
<item>
<name>hold</name>
<value>0</value>
</item>
</hold>{{}}
Expected Output:
<hold>
<item>
<name>hold</name>
<value>0</value>
</item>
</hold>
Similarly, while mapping XML to JSON:
XML:
</soapenv:Header>
<soapenv:Body>
<cai3:SetResponse>
<!-Optional:->
<cai3:MOAttributes>
</cai3:MOAttributes>
<!-Optional:->
<cai3:Status>
<cai3:ResultCode>?</cai3:ResultCode>
<cai3:Description>?</cai3:Description>
</cai3:Status>
</cai3:SetResponse>
</soapenv:Body>
</soapenv:Envelope>{{ }}
JSON:
{
"SetResponse": {
"Status":
}
}{{}}
In case ResultCode in not present in XML we're getting null value in json.
Current Output:
{
"SetResponse": {
"Status":
}
}{{}}
{{}}
Expected Output:
{
"SetResponse": {
"Status":
}
}{{}}