JSONToXML Service Exception

This forum allows users to post and respond to "How Do I Do ....." questions. The information contained in this forum has not been validated by K-Rise Systems and, as such, K-Rise Systems cannot guarantee the accuracy of the information.
Post Reply
CathyC
Posts: 472
Joined: November 16th, 2021, 11:15 am
Contact:

JSONToXML Service Exception

Unread post by CathyC »

We are calling an api in platform4 and when it returns, if it fails, the response is in json. we use this service to convert to xml so we can get the error message to return from the method output. But when the api is successful, its in xml.

The issue is that we cant tell when its successful or not so we just always pass the response to the service JSONToXML. It throws an exception when its successful because its not in JSON.
image.png
I think it should not return an exception if what it was asked to do is already done. Does this seem like a valid use?
Or how should we build this instead if thats not reasonable?
word count: 120

Tags:
JustinVanRegenmorter
Posts: 574
Joined: August 26th, 2021, 9:56 am
Contact:

Re: JSONToXML Service Exception

Unread post by JustinVanRegenmorter »

Task 11518 has been created to discuss this suggestion and issue. This post will be updated when there is a resolution.
word count: 21
Post Reply