Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 14th, 2008, 11:32 AM
Registered User
 
Join Date: Nov 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default passing xml document as input parameter to web ser

Hi,

I am newbie in xslt.

I have some problem in my current project.

I have to call web service from xslt. The web service takes an xml document as input parameter. I dont know how to do it.

I have tried to write xslt which calls web service by passing string or int values.

Please let me know how can I write the xslt.

Regards,
Smaranika
 
Old November 14th, 2008, 11:59 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

There is no standard facility for calling web services from XSLT. You will need to use extension mechanisms provided by your chosen XSLT processor.

Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer's Reference
 
Old November 14th, 2008, 12:45 PM
Registered User
 
Join Date: Nov 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for your prompt reply.

I understand that. I feel i have to use HTTP Post method.

I have googled and could find this link.

http://osdir.com/ml/gnome.lib.xml.ge.../msg00165.html


Does this help? How will i call my webservice then?

Regards,
Smaranika

 
Old November 14th, 2008, 12:47 PM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

What platform and processor will you be using?

--

Joe (Microsoft MVP - XML)
 
Old November 14th, 2008, 12:52 PM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

There are XSLT processors that have extensions for doing an HTTP POST, but you're probably better off asking about them on a processor-specific forum.

Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer's Reference
 
Old November 14th, 2008, 12:52 PM
Registered User
 
Join Date: Nov 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am using xslt processor in visual studio 2005 and sql server.

 
Old November 14th, 2008, 12:57 PM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

So you can write an extension function or use an object passed in with XsltArgumentList. You also need to define a web service that takes an XmlNode as a parameter.

All that is documented in MSDN.com in the examples under XslCompiledTransform.

--

Joe (Microsoft MVP - XML)
 
Old November 14th, 2008, 12:58 PM
Friend of Wrox
 
Join Date: Nov 2007
Posts: 1,243
Thanks: 0
Thanked 245 Times in 244 Posts
Default

Assuming you are using System.Xml.Xsl.XslCompiledTransform in the .NET framework you need to study http://msdn.microsoft.com/en-us/library/6datxzsd(VS.80).aspx and then decide to either use an extension object or extension script to talk to the web service.


--
  Martin Honnen
  Microsoft MVP - XML





Similar Threads
Thread Thread Starter Forum Replies Last Post
Key and Data Management System using .Net web ser MitDac147 .NET Web Services 0 April 14th, 2008 09:10 PM
Passing Input Date Parameter values preethig Crystal Reports 0 February 28th, 2008 08:39 AM
Passing MXML file as XML Parameter maulik33 Flex 0 January 9th, 2008 12:49 PM
Passing an Input Field to a Parameter Query stcraig BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 4 November 6th, 2006 06:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.