xsl-list
[Top] [All Lists]

RE: Web-sevices in xslt

2006-01-11 09:30:38
Because, as per my example, i need to set some request headers and
send some xml envelope in a post, and the examples only show how to do
a get with parameters on the url...

I'm now trying to look at calling REST Web Services from xsl, it seems
that works "with the four well-defined verbs: GET, POST, PUT, and
DELETE"...

Anyone knows anuthing about this?


Thanks again.


------------------------------

Date: Tue, 10 Jan 2006 21:34:32 +0100 (CET)
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
From: Florent Georges <darkman_spam(_at_)yahoo(_dot_)fr>
Subject: RE: [xsl] Web-sevices in xslt
Message-ID: 
<20060110203432(_dot_)27545(_dot_)qmail(_at_)web25809(_dot_)mail(_dot_)ukl(_dot_)yahoo(_dot_)com>

António Mota wrote:

but the results i've got are not satisafactory (e.g.
http://www.xml.com/pub/a/2004/12/01/tr.html),
because they call the web-service as a URL with parameters.

 Why?

--drkm




Date: Tue, 10 Jan 2006 18:48:54 +0000
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
From: =?ISO-8859-1?Q?Ant=F3nio_Mota?= <amsmota(_at_)gmail(_dot_)com>
Subject: Web-sevices in xslt
Message-ID: <2fa554470601101048o5c19dbd5j(_at_)mail(_dot_)gmail(_dot_)com>

Hello:

I've been googling for this, but the results i've got are not
satisafactory (e.g. http://www.xml.com/pub/a/2004/12/01/tr.html),
because they call the web-service as a URL with parameters.

However, i wanted to do something in the lines of what i'm doing now
with Javascript/ajax

=09var uri=3D"http://portosanto/todows/service1.asmx";
=09var xmlhttp =3D new XMLHttpRequest();=09
=09xmlhttp.open("POST", uri, true);
=09xmlhttp.setRequestHeader("Content-type", "text/xml");
=09xmlhttp.setRequestHeader("SOAPAction", "http://tempuri.org/HelloWorld";);
=09xmlhttp.onreadystatechange =3D function()
=09{
=09=09if(xmlhttp.readyState =3D=3D 4){
=09=09//debugger
=09=09=09FRAME_MAIN.document.body.innerText =3D xmlhttp.responseBody;
=09=09}
=09}
=09var sopa =3D '<?xml version=3D"1.0" encoding=3D"utf-16"?>'+
=09=09'<soap:Envelope
xmlns:soap=3D"http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema";>'+
=09=09'<soap:Body>'+
=09=09'<'+name+' xmlns=3D"http://tempuri.org/"; />'+
=09=09'</soap:Body>'+
=09=09'</soap:Envelope>';
=09xmlhttp.send(sopa);

So i have to set some headers and some content.

Is there a way to do this?

Thanks.

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>