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.
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?
JSONToXML Service Exception
-
- Posts: 472
- Joined: November 16th, 2021, 11:15 am
- Contact:
-
- Posts: 573
- Joined: August 26th, 2021, 9:56 am
- Contact:
Re: JSONToXML Service Exception
Task 11518 has been created to discuss this suggestion and issue. This post will be updated when there is a resolution.
word count: 21