Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Data Actions for Integration with XML Request Body Template

    Posted 09-14-2022 09:03
    No replies, thread closed.
    We need to integrate a server which accepts only XML Request Body Template in API POST method instead of JSON.
    Please suggest how can we create/modify a Data Action to send XML Request Body as the server is not accepting JSON.
    Below is the error for reference:
    "message": "REST call for action execute failed. Message: We were unable to process the response from the remote endpoint because it had a 'content-type' header of 'application/xml' instead of the required value of 'application/json'.

    #Integrations

    ------------------------------
    Maloy Karmakar
    ------------------------------


  • 2.  RE: Data Actions for Integration with XML Request Body Template

    Posted 09-14-2022 22:14
    No replies, thread closed.
    Genesys Cloud only supports JSON payload.  You need to change your API to support application/json.  You should do this anyway since that is the modern way of designing web services.

    ------------------------------
    Robert Wakefield-Carl
    Avtex Solutions, LLC
    Contact Center Innovation Architect
    https://www.Avtex.com
    https://RobertWC.Blogspot.com
    ------------------------------



  • 3.  RE: Data Actions for Integration with XML Request Body Template

    Posted 09-14-2022 22:15
    No replies, thread closed.
    Another option is to use this translator from AppFoundry:  Genesys AppFoundry - SOAP Adapter (mypurecloud.com)

    ------------------------------
    Robert Wakefield-Carl
    Avtex Solutions, LLC
    Contact Center Innovation Architect
    https://www.Avtex.com
    https://RobertWC.Blogspot.com
    ------------------------------