Zoho Creator PostURL responseText was cut

Zoho Creator PostURL responseText was cut

Hi everyone,

I'm newbie here in zoho creator and deluge script. I'm trying out and testing how to call web API via SOAP. Below is the sample code.



  1. Headers = Map();


    response = Map();

     

    Headers.put("Content-Type","text/xml");

     
    body = "<soapenv:Envelope xmlns:soapenv=\" http://schemas.xmlsoap.org/soap/envelope/\"
    <hs:GetHolidaysAvailable> <hs:countryCode>UnitedStates</hs:countryCode> </hs:GetHolidaysAvailable>
    </soapenv:Body></soapenv:Envelope>";


    response = postUrl(url,body,Headers,false);

     
    alert response;


and this is the response that I get.


  1. {"responseText":"NEW-YEARS-DAY-ACTUAL<\/Code>New Year's Day<\/Description><\/HolidayCode>NEW-YEARS-DAY-OBSERVED<\/Code>New Year's Day<\/Description><\/HolidayCode>MARTIN-LUTHER-KING-BIRTHDAY-ACTUAL<\/Code>Martin Luther King's Birthday<\/Description><\/HolidayCode>MARTIN-LUTHER-KING-BIRTHDAY-OBSERVED<\/Code>Martin Luther King's Birthday<\/Description><\/HolidayCode>GROUNDHOG-DAY<\/Code>Groundhog Day<\/Description><\/HolidayCode>LINCOLN-BIRTHDAY<\/Code>Abraham Lincoln's Birthday<\/Description><\/HolidayCode>VALENTINES-DAY<\/Code>Valentine's Day<\/Description><\/HolidayCode>WASHINGTON-BIRTHDAY<\/Code>George Washington's Birthday<\/Description><\/HolidayCode>PRESIDENTS-DAY<\/Code>President's Day<\/Description><\/HolidayCode>EASTER<\/Code>Easter<\/Description><\/HolidayCode>GOOD-FRIDAY<\/Code>Good Friday<\/Description><\/HolidayCode>SHROVE-TUESDAY<\/Code>Shrove Tuesday (Fat Tuesday)<\/Description><\/HolidayCode>ASH-WEDNESDAY<\/Code>Ash Wednesday<\/Description><\/HolidayCode>ST-PATRICKS-DAY<\/Code>St. Patrick's Day<\/Description><\/HolidayCode>APRIL-FOOLS<\/Code>April Fools Day<\/Description><\/HolidayCode>EARTH-DAY<\/Code>Earth Day<\/Description><\/HolidayCode>MOTHERS-DAY<\/Code>Mother's Day<\/Description><\/HolidayCode>MEMORIAL-DAY<\/Code>Memorial Day<\/Description><\/HolidayCode>CINCO-DE-MAYO<\/Code>Cinco de Mayo<\/Description><\/HolidayCode>FATHERS-DAY<\/Code>Father's Day<\/Description><\/HolidayCode>FLAG-DAY<\/Code>Flag Day<\/Description><\/HolidayCode>INDEPENDENCE-DAY-ACTUAL<\/Code>Independence Day<\/Description><\/HolidayCode>INDEPENDENCE-DAY-OBSERVED<\/Code>Independence Day<\/Description><\/HolidayCode>LABOR-DAY<\/Code>Labor Day<\/Description><\/HolidayCode>PATRIOT-DAY<\/Code>Patriot Day<\/Description><\/HolidayCode>COLUMBUS-DAY<\/Code>Columbus Day<\/Description><\/HolidayCode>HALLOWEEN<\/Code>Halloween<\/Description><\/HolidayCode>VETERANS-DAY-ACTUAL<\/Code>Veteran's Day<\/Description><\/HolidayCode>VETERANS-DAY-OBSERVED<\/Code>Veteran's Day<\/Description><\/HolidayCode>THANKSGIVING<\/Code>Thanksgiving<\/Description><\/HolidayCode>BLACK-FRIDAY<\/Code>Black Friday<\/Description><\/HolidayCode>CHRISTMAS-ACTUAL<\/Code>Christmas<\/Description><\/HolidayCode>CHRISTMAS-OBSERVED<\/Code>Christmas<\/Description><\/HolidayCode>NEW-YEARS-EVE<\/Code>New Year's Eve<\/Description><\/HolidayCode><\/GetHolidaysAvailableResult><\/GetHolidaysAvailableResponse><\/soap:Body><\/soap:Envelope>","responseCode":200}


As you can see, at the beginning of the response text, the open <code> tag is missing as it should look like this from postman



What is missing from my code?


Thanks for your feedback..

Ruby