advertisement
Premier Club Log In/Registration
  Include Code  Search Tips
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   SKILLBUILDING  |   TIP BANK  |   SOURCEBANK  |   FORUMS  |   NEWSLETTERS
Browse DevX
Download the Code!
Partners & Affiliates
advertisement
advertisement
Average Rating: 3.7/5 | Rate this item | 3 users have rated this item.
 Print Print
 
Boost Web Service Performance in JAX-WS with Fast Infoset
Web service performance depends largely on the size of the XML data being transmitted and the speed of XML processing. Fast Infoset helps greatly with those aspects. 

advertisement
ML message transmission and processing are at the foundation of the web service programming model. To effectively improve web service performance, you need to reduce the overhead associated with parsing, serializing, and transmitting XML-based data. Fast Infoset is an open, standards-based solution for doing just that. It specifies several techniques for minimizing the size of XML encodings and maximizing the speed of creating and processing those encodings. Using these techniques, you can tune Fast Infoset encoding according to your specific domain requirements, whether that means favoring compression over processing performance or requiring efficient compression but not at the expense of processing performance.


In general, Fast Infoset documents are smaller and therefore faster to process than corresponding XML representations. As such, they can be very useful when the size and processing time of XML documents are a concern. For an example, the W3C's XML Binary Characterization Working Group has identified two such use cases:
  1. Web services for small devices that have bandwidth constraints
  2. Web services within an enterprise that has high throughput requirements

This article introduces Fast Infoset, demonstrates it in an example based on the reference implementation of JAX-WS, and presents some empirical data comparing the effects of Fast Infoset and MTOM/XOP (another technology for optimizing XML data transmission and processing) on web service performance.

XML Infoset and Fast Infoset
An XML infoset is an abstract model of the information stored in an XML document. The XML Information Set (Infoset) is a W3C specification that specifies the result of parsing an XML document, called an XML infoset, and identifies various Infoset components, called information items and properties. More and more technologies, such as SOAP 1.2 and MTOM/XOP, are defined in terms of the XML Infoset, because most common XML use cases are really concerned with the information stored within an XML document rather than its presentation with a specific encoding.

The Fast Infoset specification provides a representation of an instance of infoset using ASN.1 binary encodings. It can serve as an alternative to W3C's Infoset syntax. Fast Infoset documents retain the hierarchical structure described by the corresponding XML infoset. Depending on which features you select, a Fast Infoset document can be self-contained or not. Self-contained Fast Infoset documents can be converted to and from traditional XML documents without loss of information, at least with respect to the information items and properties defined in the XML Information Set. You therefore can consider these representations as equivalent to XML documents for the corresponding XML infosets.

To provide you a concrete example of Fast Infoset document, the source code download for this article contains a SOAP request XML document (lookup_soap_request.xml), the corresponding Fast Infoset document (lookup_soap_request.fi), and the octal dump of the Fast Infoset document (lookup_soap_request.fi.o). You can generate the Fast Infoset document from the XML document with the free tool FI Coverter from Noemax and generate the octal dump with Hod from the Fast Infoset document. You then can view the Fast Infoset document as XML with another free Noemax tool, FI Viewer, to verify that no information was lost during the conversion.

Page 1 of 3


advertisement
  Next Page: Fast Infoset in Practice with a JAX-WS 2.0 Web Service
Page 1: IntroductionPage 3: Web Service Performance: Fast Infoset vs. MTOM/XOP
Page 2: Fast Infoset in Practice with a JAX-WS 2.0 Web Service 
advertisement
Advertising Info  |   Member Services  |   Permissions  |   Contact Us  |   Help  |   Feedback  |   Site Map  |   Network Map  |   About


JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
Microsoft Article: HyperV-The Killer Feature in WinServer ‘08
Avaya Article: How to Feed Data into the Avaya Event Processor
Microsoft Article: Install What You Need with Win Server ‘08
HP eBook: Putting the Green into IT
Whitepaper: HP Integrated Citrix XenServer for HP ProLiant Servers
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 1
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 2--The Future of Concurrency
Avaya Article: Setting Up a SIP A/S Development Environment
IBM Article: How Cool Is Your Data Center?
Microsoft Article: Managing Virtual Machines with Microsoft System Center
HP eBook: Storage Networking , Part 1
Microsoft Article: Solving Data Center Complexity with Microsoft System Center Configuration Manager 2007
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Intel Video: Are Multi-core Processors Here to Stay?
On-Demand Webcast: Five Virtualization Trends to Watch
HP Video: Page Cost Calculator
Intel Video: APIs for Parallel Programming
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Sun Download: Solaris 8 Migration Assistant
Sybase Download: SQL Anywhere Developer Edition
Red Gate Download: SQL Backup Pro and free DBA Best Practices eBook
Red Gate Download: SQL Compare Pro 6
Iron Speed Designer Application Generator
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
How-to-Article: Preparing for Hyper-Threading Technology and Dual Core Technology
eTouch PDF: Conquering the Tyranny of E-Mail and Word Processors
IBM Article: Collaborating in the High-Performance Workplace
HP Demo: StorageWorks EVA4400
Intel Featured Algorhythm: Intel Threading Building Blocks--The Pipeline Class
Microsoft How-to Article: Get Going with Silverlight and Windows Live
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES