1
Matheroft 흐름에 리터럴 CDATA 값을 포함하려고 시도하고 있으므로이를 수행 할 방법을 알 수 없습니다.Mulesoft에서 CDATA를 포함하는 방법
(HTTP 요청 본문에) 내 원하는 출력은 다음과 같습니다
%dw 1.0
%output application/xml
%namespace soap http://schemas.xmlsoap.org/soap/envelope
---
{
soap#Envelope @(version: "1.0") : {
soap#Header: {},
soap#Body: {
query: {
sXML: "<queryxml><entity>ticket</entity><query><condition><field>id<expression op=\"equals\">12345</expression></field></condition></query></queryxml>"
}
}
}
}
을하지만 requestb.in이 요청을 보낼 때 (검사하기 위해 다음과 같이
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<query xmlns="http://autotask.net/ATWS/v1_5/">
<sXML>
<![CDATA[<queryxml><entity>ticket</entity><query><condition><field>id<expression op="equals">12345</expression></field></condition></query></queryxml>]]>
</sXML>
</query>
</soap:Body>
</soap:Envelope>
내 Dataweave 변화가 보인다 내용), 나는 이것 같이 (sXML 실재물에 초점) 오는 것을 볼 수있다 :
<?xml version='1.0' encoding='UTF-8'?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope" version="1.0">
<soap:Header/>
<soap:Body>
<query>
<sXML><queryxml><entity>ticket</entity><query><condition><field>id<expression op="equals">12345</expression></field></condition></query></queryxml></sXML>
</query>
</soap:Body>
</soap:Envelope>
dataweave/MEL을 통해 리터럴 CDATA 값을 어떻게 얻을 수 있습니까?
감사합니다.