Re: [xsl] Calling Web Service Method from XSLT.

Subject: Re: [xsl] Calling Web Service Method from XSLT.
From: "bryan rasmussen" <rasmussen.bryan@xxxxxxxxx>
Date: Wed, 12 Apr 2006 09:00:17 +0200
Is that webservice uri a get or a post, the uri itself would suggest a
Get (get is even in the querystring after all) if it is a Get then if
the html returned by the service (and why would a service return
html?!?) is well formed then the document function should work, if it
is not well formed then you would still need to use an extension
function, call the html tidy com object
http://users.rcn.com/creitzel/tidy.html#comatl and then tidy the html
before passing it to your xslt. As a general rule I would not do this
as an extension function inside the xslt but as a function in a script
or application calling the xslt.

If the web service uses Post then you will need to keep on doing it
the way you've been doing it, although I would suggest moving the
extension function to an external script and passing the returned
(x)html to the xslt in that way.

Cheers,
Bryan Rasmussen

On 4/12/06, saurabh lakhia <saurabhlakhia@xxxxxxxxx> wrote:
> Hi,
>
> I am displaying web page with XML and XSL, where some
> part of the data I am getting from Web Service's
> method ,current code is using VBScript function to
> create XMLHTTPObject and sending request and getting
> response back and that function is being called in
> XSLT itself. But now I do not want to use VBScript
> anymore, I would like to use XSLT itself to make a
> call to Web Service
> (http://localhost/abcservices/abc.asmx?GetHTML
> and I don't know how to do it.
>
> Question : How do i call WebService method which
> returns just HTML in XSLT?
>
> It would be very helpful if anyone can guide me on the
> same.

Current Thread