Home arrow XML arrow Page 5 - Designing Your Own Reporting Service: A Web Service to Convert XML to HTML Using XSL
XML

Designing Your Own Reporting Service: A Web Service to Convert XML to HTML Using XSL


This article guides you in developing a web service which converts a given XML string to HTML based on XSL file available at server side.

Author Info:
By: Jagadish Chaterjee
Rating: 4 stars4 stars4 stars4 stars4 stars / 11
December 19, 2005
TABLE OF CONTENTS:
  1. · Designing Your Own Reporting Service: A Web Service to Convert XML to HTML Using XSL
  2. · Developing the XML Web Service
  3. · Developing the XML Web Service continued
  4. · Defining the XSLT
  5. · Executing and testing the XML Web Service
  6. · Understanding the web service
  7. · Improvements to the solution

print this article
SEARCH DEVARTICLES

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.


blog comments powered by Disqus
XML ARTICLES

- Open XML Finally Supported by MS Office
- XML Features Added to Two Systems
- Using Regions with XSL Formatting Objects
- Using XSL Formatting Objects
- More Schematron Features
- Schematron Patterns and Validation
- Using Schematron
- Datatypes and More in RELAX NG
- Providing Options in RELAX NG
- An Introduction to RELAX NG
- Path, Predicates, and XQuery
- Using Predicates with XQuery
- Navigating Input Documents Using Paths
- XML Basics
- Introduction to XPath

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials