Mihai_Vasiloiu | 2022-08-30 10:00:17 UTC | #1
Hello,
I understood Genesys Cloud doesn't support any content-type in the actions responses other than text/json. I am trying to get customer info from a public telephone book like Webservice which only sends responses with content-type=text/xml. Has anyone found a way to solve this kind of issue? Since this is a public Webservice they will not change their API just for us so I'm trying to find a way to accept the answer and format it some how.
Thank you, Mihai
Jason_Mathison | 2022-08-30 12:52:49 UTC | #2
Even if we accepted the text/xml response from that webservice, there is no tooling in data actions / architect / scripts to handle xml. If you want to use this web service you will need to have an intermediary to convert from xml to json. AWS lambdas have first class data action support, and are generally pretty simple and cheap to setup. You could also host a web service yourself to handle the translation.
--Jason
system | 2022-09-30 12:53:27 UTC | #3
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 16070