Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I am trying to send a request body to tRestClient in the below format
{"x" : [1,2,3], "y" : [] }
I am using txml map to prepare the body and send a request, it is being sent as string type not as a list type
{"x" : "[1,2,3]", "y" : "[]" }
Hello,
Either you can see if the parameters exist for tXMLMap, either after creating this data, use java routine replaceAll to change "[]" by []
TrestClient is expecting the below format
<?xml version="1.0" encoding="UTF-8"?>
<root>
<x>
<element>19323</element>
<element>19324</element>
</y>
<y/>
</root>
I am sending the request as
<?xml version="1.0" encoding="UTF-8"?>
<root><x>"[19323,19324]"</x></root>
Its a challenge, how to handle