xsl-list
[Top] [All Lists]

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

2006-04-12 00:00:32
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(_at_)yahoo(_dot_)com> 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.



--~------------------------------------------------------------------
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>
--~--



--~------------------------------------------------------------------
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>