Webservice Macro Example - Displaying "Raw" Result
This webservice example will display the "raw" xml result, which can be used in the development stage of coding the se:xslt format parameter of a se:webservice.
Notice that this example uses the Asmx Webservice Example.
Smartsite SXML | Copy Code |
---|---|
<se:webservice save="result"> <se:parameters> <se:parameter name="url">http://localhost/TestWebservice.asmx</se:parameter> <se:parameter name="methodname">CelsiusToFahrenheit</se:parameter> <se:parameter name="methodnamespace">http://smartsite.nl/</se:parameter> <se:parameter name="methodarguments"> <se:collection> <se:member name="Celsius">25</se:member> </se:collection> </se:parameter> <se:parameter name="format"> <se:xslt> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="xml" indent="yes"/> <xsl:template match="/"> <xsl:copy-of select="."/> </xsl:template> </xsl:stylesheet> </se:xslt> </se:parameter> </se:parameters> </se:webservice> <div class="code"> <pre xml:space="preserve"> {string.xmlencode(buffer.get(result))} </pre> </div> |