Soap request using Logic app custome connector - How to handle CData

Kalpesh Patel 1 Reputation point
2021-03-18T09:34:57.763+00:00

I have created Logic app customer connector to call my Soap request. Call mode in Logic app is SOAP to REST. When I I have CDATA <![CDATA[ XML String ]]>. How shall I handle this. Its asking for Json string. If I convert my XML to jason and pass its not working either.

Please help....

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,854 questions
{count} votes

1 answer

Sort by: Most helpful
  1. oddgeirh 1 Reputation point
    2022-10-20T07:57:45.52+00:00

    Hi. I have also the same question and wonder if this is solved?

    I have created a Logic Apps Custom Connector in azure, SOAP to REST using WSDL file. The custom connector connects using on-prem GW. I also get error messages back when I use wrong parameters/variables. When I use correct variables the Custom Connector returns : "
    BadRequest. Http request failed: the content was not a valid JSON. Error while parsing JSON: 'After parsing a value an unexpected character was encountered"

    Using SOAP locally i see the payload like this:
    <Interface><![CDATA[<?xml version="1.0" encoding="utf-8"?>.....]]</Interface>

    I guess the "![CDATA[" is the reason for the fault.

    I have tried a lot of things without success. Very thankful for any help on this issue.

    0 comments No comments