Hello
We have a particular case, where we need to process the request in order to determine and construct the response.
In the request we have 1 to n different keys, that are valid (existing) or not.
Out of the valid keys we need to identify the distinct ones...
The response should then consist of all the distinct keys, each paired with some dummy-data.
Request:
<tns:imageParams>
<img:imageParam>
<img:id>123456</img:id> <!-- does exist -->
</img:imageParam>
<img:imageParam>
<img:id>999999</img:id> <!-- does NOT exist -->
</img:imageParam>
<img:imageParam>
<img:id>123456</img:id>
</img:imageParam>
</tns:imageParams>
Response:
<v1:getListResponse xmlns:v1="http://...">
<v1:images>
<v11:image xmlns:v11="http://...">
<v11:id>123456</v11:id>
<v11:content>bytes[]</v11:content>
</v11:image>
</v1:images>
</v1:getListResponse>
What's the best practice to handle such dynamic cases? How and where would you construct the response?
Thanks in advance!!
Carine