question

kkpatel97 avatar image
0 Votes"
kkpatel97 asked OddgeirHerheim-2944 answered

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

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
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@KalpeshPatel-8640 Can you please confirm if my understanding is correct that you have deployed the custom connector and while using any of the action/triggers it returns the CDATA. When you tried converting the response from XML to JSON then also it didn't work.

Sharing similar discussion here.

0 Votes 0 ·

Hello @MayankBargali-MSFT ,

Yes, I have deployed custom connector which I am using in my Logic App. I am unable to place request because it request it has CDATA. Its giving me error.

Please let me know if we can connect offline and I shall give you more details.

0 Votes 0 ·

1 Answer

OddgeirHerheim-2944 avatar image
0 Votes"
OddgeirHerheim-2944 answered

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.