[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] Calling Web Service Method from XSLT.
Subject: Re: [xsl] Calling Web Service Method from XSLT. From: saurabh lakhia <saurabhlakhia@xxxxxxxxx> Date: Wed, 12 Apr 2006 03:44:31 -0700 (PDT) |
This function is getting nothing but screen scrapping of some other website, thats why it is returning HTML and yes it is well formed, It would be helpful if you have any example of using document function and also if you have any example of calling external script and returning xhtml, I know I am asking too much. I would really appreciate your reply. --- bryan rasmussen <rasmussen.bryan@xxxxxxxxx> wrote: > 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. > > Best Regards, Saurabh Lakhia ATLANTIS QUALITY SOLUTIONS CORPORATION http://www.AQSCorporation.com/ (215)-736-2281 ( Home-Office ) (215)-359-7651 ( Cell ) E-Mail : SaurabhLakhia@xxxxxxxxx
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Calling Web Service Metho, bryan rasmussen | Thread | RE: [xsl] Calling Web Service Metho, Michael Kay |
Re: [xsl] rephrased: passing parame, Florent Georges | Date | RE: [xsl] Calling Web Service Metho, Michael Kay |
Month |