[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Calling Web Service Method from XSLT.

Subject: Re: Calling Web Service Method from XSLT.
From: saurabh lakhia <saurabhlakhia@xxxxxxxxx>
Date: Wed, 12 Apr 2006 03:44:31 -0700 (PDT)
calling web service from xslt
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.