Legacy Dev Forum Posts

 View Only

Sign Up

application/xml;charset=UTF-8 workaround

  • 1.  application/xml;charset=UTF-8 workaround

    Posted 06-05-2025 18:41

    dmthames | 2020-04-14 18:24:04 UTC | #1

    Hi All,

    I have an api that I need to get at that's returning a content type header of application/xml;charset=UTF-8, whereas genesys is looking for application/json.

    There's another post out here advising that the request body needs to use the "$esc.url()" method... I'm having a hard time following the example he gave. Is anyone else familiar with doing this?

    Thanks.


    Jason_Mathison | 2020-04-14 18:51:09 UTC | #2

    Data Actions do not support XML endpoints, nor is there any plan to do so. Either the endpoint would need to be updated to support JSON, or a translation web service would need to be in the middle. I believe that PS may have created a service for doing XML translation for you, you should be able to ask your sales person if this still exists.

    Another option for a translation service is mentioned here: https://help.mypurecloud.com/articles/how-the-data-actions-integration-works/ Where you create a lambda data action that takes care of interacting with your XML endpoint.

    --Jason


    system | 2020-05-15 18:51:14 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: 7540