View Full Version : Sending data to the server
hitesh
12-02-2008, 07:45 AM
I want to send xml data to the server and get the response back.
How can i do it?
rcyeager
12-03-2008, 07:06 AM
Documented here:
http://www.openlaszlo.org/lps4.1/docs/developers/data_app.html#d0e105603
Robert Yeager
http://www.qrowd.com
http://www.cooqy.com
Frankhil
12-04-2008, 06:02 AM
This is what worked for me in version 4.1.0
Ds.setQueryParam("lzpostbody", Ds.serialize());
Ds.setHeader("Content-Type","text/xml");
// The following statement should work but does not
//Ds.setPostBody(Ds.serialize());
Ds.setQueryType("POST");
Ds.doRequest();
Ironically for the setPostBody() method did not give me the desired result.
The following statement did do the trick for me.
Ds.setQueryParam("lzpostbody", Ds.serialize());
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.