Web Service Example 8: Step-by-Step Instructions |
This topic contains step-by-step instructions to complete Web Service Example 8: Component Table with an Input XSL Transformation. To extend the GetMultipleTours method of the TRAVELSERVICE web service provider with a SearchXML input parameter that contains a SearchDestination condition:
INVOKE XML.EXPORT WITH SELECT * FROM tour WHERE destination = USXSL.value(:SearchXML ,'/ns:SearchDestination' ,'xmlns:ns="http://MyWebServer/TravelService/TRAVELSERVICE.wsdl"')
A SearchXML input parameter and one output parameter, by default XMLDOCUMENT, is generated.
Change the parameter name to: Tours.
Change the Namespace Alias to: Tours.
Click the XML Data Type button and select the Tours record.
'<?xml version="1.0" encoding="Windows-1252"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" omit-xml-declaration="yes"/> <xsl:template match="/"> <SearchDestination xmlns="http://MyWebServer/TravelService/TRAVELSERVICE.wsdl"> <xsl:value-of select="Table/Row/Field[@Index=''0'']/@Value"/> </SearchDestination> </xsl:template> </xsl:stylesheet>'
|