Kilian Hekhuis wrote:
Thanks for your reply. Yes indeed I'm consuming a REST API via the TEST facility in the Service Studio.
However that API's response is a XML stream (not JSON). I did convert the XML stream to JSON format.
From your answer I understand that when the output is already JSON at response time and I then hit the "Copy to Response Body" button in the Service Studio then the structure is automatically generated for me.
Do I understand you correctly in this.
If so : Should this automatic generation also be working when I paste my own converted JSON string in the body part by hand?
Regards Ronald
Ronald,
I'm not sure what you mean. Are you consuming a REST API? In that case, you can paste the JSON into the "Response" in the Body tab of the consumed method, and Service Studio will create the necessary structures for you.
Hi Kilian,I'm not sure what you mean. Are you consuming a REST API? In that case, you can paste the JSON into the "Response" in the Body tab of the consumed method, and Service Studio will create the necessary structures for you.
Thanks for your reply. Yes indeed I'm consuming a REST API via the TEST facility in the Service Studio.
However that API's response is a XML stream (not JSON). I did convert the XML stream to JSON format.
From your answer I understand that when the output is already JSON at response time and I then hit the "Copy to Response Body" button in the Service Studio then the structure is automatically generated for me.
Do I understand you correctly in this.
If so : Should this automatic generation also be working when I paste my own converted JSON string in the body part by hand?
Regards Ronald