on 06-16-2021 5:53 PM
Hello All,
I need to send an XML data as string to third-party system. Below is the sample payload that I can pass from SOAP UI, here I converted the xml payload to string by using CDATA.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:TextXML>
<tem:xmlFile>
<![CDATA[<ProdCatalog>
<ArrayOfPCatInfo>
<PCatInfo>
<PFC>51</PFC>
<PF></PF>
<S>03</S>
<PC>CAN-LINK II</PC>
<P>CAN-Link II</P>
</PCatInfo>
</ArrayOfPCatInfo><ProdCatalog>]]></tem:xmlFile>
</tem:TextXML>
</soapenv:Body>
</soapenv:Envelope>
when I try to achieve the same in CPI, message mapping fails to simulate the data. It seems CDATA is not recognized in message mapping.
Can anyone help here.
Best Regards,
Senthil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Another option is that you could also try encoding the XML payload as a base64, this will make a string that you can send across that can easily be decoded on the receiving side.
Kind regards,
David
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.