I am working on generating an XML file for a SOAP API with a vendor. I am using pro-datasets to populate the data to be included in the XML file.
One of the fields in the request requires CDATA be sent similar to the following
The response also has a CDATA section similar to the following
How can I
1. Add the request message XML into the pro-dataset /temp-table field. When I use a simple assign for the request I end up with something like this
2. Read the result message XML from the response
One of the fields in the request requires CDATA be sent similar to the following
<req:RequestMsg><![CDATA[<?xml version='1.0' encoding='UTF-8'?><request> <Transaction> <CommandID>SomeData</CommandID></Transaction> </request>]]></req:RequestMsg>
The response also has a CDATA section similar to the following
<ResultMsg><![CDATA[<Result><ResultType>Completed</ResultType></Result>]]></ResultMsg>
How can I
1. Add the request message XML into the pro-dataset /temp-table field. When I use a simple assign for the request I end up with something like this
<RequestMsg>&lt;![CDATA[<?xml version="1.0" encoding="utf-8"?> <request> <Transaction> <CommandID>SomeData</CommandID> </Transaction> </request> ]]&gt;</RequestMsg>
2. Read the result message XML from the response