Designing Your Own Reporting Service: A Web Service to Convert XML to HTML Using XSL - Executing and testing the XML Web Service
(Page 5 of 7 )
This section is very simple to understand. Just press F5 to start executing (along with debugging) the web service.
Immediately you should see a new browser window titled “XML2HTML web service” with the web page title “XML2HTML” (Fig 1).

You click on the “BuildHTMLString” hyperlink to test the web service (on the same page). You will be presented with a text box to enter a value. Just type some XML (as a single line) into the textbox as follows:
<Products>
<Product>
<idproduct>27754</idproduct>
<productname>CRL-125 + MBA-0-125/125</productname>
<manufacturer>Lindab Comfort</manufacturer>
</Product>
<Product>
<idproduct>27794</idproduct>
<productname>CRL-100</productname>
<manufacturer>Lindab Comfort</manufacturer>
</Product>
<Product>
<idproduct>27751</idproduct>
<productname>CRL-100 + MBA-0-100/100</productname>
<manufacturer>Lindab Comfort</manufacturer>
</Product>
<Product>
<idproduct>27796</idproduct>
<productname>CRL-125</productname>
<manufacturer>Lindab Comfort</manufacturer>
</Product>
</Products>
Finally, press the “Invoke” button, which opens a new browser window with the result (Fig 2) showing you the transformed HTML for the given XML.

Next: Understanding the web service >>
More XML Articles
More By Jagadish Chaterjee