WSrequest post data

joed's picture
Hi there, I am trying to post some data to a backend system with a string as the body. The post function from the docs only seems to process a compliant xml payload causing the backend to incorrectly processes the data. Is there a way of posting a string without adhering to the formatting of xml. Also tried cdata and scraper object. Thanks Joed
hanymorcos's picture

Posting to WSrequest

Joed, I'm running into the same issue. Were you able to find workaround? thanks, Hany
joed's picture

(No subject)

Hi Hany, Apologies for the delay. Cdata seemed to work or possibly escaping the entire thing as a string with a custom function(java style). Maybe a couple of native javascript functions for escaping may work then glue them back together with something in the middle(http://xkr.us/articles/javascript/encode-compare/). Thanks Joed
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)