[thelist] send xml request to webservice via JS
Christian Giordano
ml at nuthinking.com
Fri Oct 28 08:59:55 CDT 2005
> Are you sending a POST or GET request via xmlhttprequest?
hi matt, I'm using a POST. Googling around I saw that Mozilla instead of
a string with xml formatting (the one I was passing) wants an xml
object, so I used:
...
var reqText='<?xml version="1.0" encoding="UTF-8" ?> <request
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation=".....xsd"> ... </request>';
req.open("POST", url, true);
var parser = new DOMParser();
var reqXML = parser.parseFromString(reqText, "application/xml");
req.send(reqXML);
...
but doesn't work yet.
Any idea?
Cheers, chr
--
___________________________________________________________________
{ Christian Giordano's site and blog @ http://cgws.nuthinking.com }
More information about the thelist
mailing list