HTTPS Task With CDATA in XML Response

If you have a new question you’d like our support staff to post a response to, please visit our customer community, GoAnywhere Insiders, to pose the question in our Discussion Boards. We have a thread “Ask Our Tech Experts” that our support team monitors on a regular basis, or you can start a new discussion where other GoAnywhere users and support staff can weigh in. Log in or create your new account at https://insiders.goanywhere.com.

If you need an immediate response, please create a support ticket or contact our support team by email at [email protected].
1 post Page 1 of 1

jbeekman

Posts: 4
Joined: Thu Feb 18, 2016 9:16 am

Post by jbeekman » Tue Aug 09, 2016 8:00 am
I'm using the HTTPS Task and postRawData to send a SOAP request which responds with a SOAP envelope that contains a CDATA text value in the body. The response gets written to a file with the CDATA tags removed and the ensuing text encoded for XML, ie. '<' becomes '<' and '>' becomes '>'.

Is there a way for the task to preserve the response exactly as it is returned, with the CDATA block unmodified?

I appreciate the help!

Expected Response:

<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>
<ManualInvoiceResponse xmlns="http://looksoftware.com/webservices/">
<ManualInvoiceResult><![CDATA[<ResultDetails><Status>Failure</Status><Errors><Error>Contract not found</Error></Errors></ResultDetails>]]></ManualInvoiceResult>
</ManualInvoiceResponse>
</soap:Body>
</soap:Envelope>

Response as written by HTTPS Task:

<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Body>
<ManualInvoiceResponse xmlns="http://looksoftware.com/webservices/">
<ManualInvoiceResult><ResultDetails><Status>Failure</Status><Errors><Error>Contract not found</Error></Errors></ResultDetails></ManualInvoiceResult>
</ManualInvoiceResponse>
</soap:Body>
</soap:Envelope>


Task Configuration:
<https label="ManualInvoice Web Service" resourceId="TotalSafety WebServices" version="1.0" disabled="false">
<postRawData label="Post ManualInvoice SOAP Request" uri="${look.uri}" inputFile="${ManualInvoice.RequestFile}" contentType="text/xml;charset=UTF-8" readTimeout="240" responseBodyDestination="file" responseBodyFile="${Invoice.Directory}\invoice-response.xml" whenResponseBodyFileExists="overwrite" responseHeadersDestination="joblog" responseBodyFileVariable="ManualInvoice.RequestFile">
<header name="SOAPAction" value="http://looksoftware.com/webservices/ManualInvoice" />
</postRawData>
</https>
1 post Page 1 of 1