Welcome!

Microservices Expo Authors: Automic Blog, Elizabeth White, Pat Romanski, Jason Bloomberg, Christoph Schell

Related Topics: Microservices Expo

Microservices Expo: Article

XML Binding Frameworks in the Context of Service-Oriented Architecture

Make an informed choice about a binding framework for your SOA needs

This article critically evaluates the role of XML binding frameworks play in the context of service-oriented architecture (SOA) platforms, and it also provides an objective evaluation of the popular XML binding frameworks in a J2EE environment.

XML binding refers to the mapping of XML documents to/from any suitable internal representation (e.g., object-based representation) that is understandable by the underlying system, and in the process facilitating easy and intuitive access to the data in XML documents. In a J2EE context, this translates to an easier and logically meaningful way of accessing the data in XML documents, rather than using the low-level DOM/SAX parsers.

To illustrate, in Listing 1, an order-processing application would find it easy to access Order, Item, and Customer objects rather than using the XML-specific data elements listing each element, its text, and its attributes as in a DOM/SAX approach. Due to this abstraction, the applications can directly deal with the business entities as part of the business functionality.

XML binding also abstracts away many low-level document details, and it requires less memory than a document model-based approach (such as DOM or JDOM).

Listing 1: An XML listing of data

<Order ordNo="O123">
<Customer custNo="C123">
<CustName>ABC</CustName>
<Street>123 Main St. </Street>
<City>Hyd</City>
<State>AP</State>
<PostCode>50003</PostCode>
</Customer>
<Items>
<Item ItemNo="1">
<Model>M12</Model>
<Qnty>10</Qnty>
</Item>
<Item ItemNo="2">
<Model>M10</Model>
<Qnty>5</Qnty>
</Item>
</Items>
</Order>

The Role of XML Binding in SOA
In the context of SOA, XML is of vital importance and has become the lingua franca of communication. We will first outline the importance of XML binding in SOA platforms. Some of the key advantages of using XML binding in the context of an SOA are described below.

Serialization/deserialization of SOAP payloads in Web services platforms with increased interoperability
Web services represent the most popular SOA formalism, and are based on strict XML-based standards for communication (XML Schema for data, and SOAP for wire-level messaging). Web services rely on SOAP marshalling and demarshalling capabilities on the service provider and consumer side (See Figure 1). The marshalling and demarshalling is required to and from the XML document passed over the wire to the native format. Typically the XML payload of a SOAP message needs to be serialized at the requestor end, and deserialized at the provider end (or vice versa). Thus, XML binding frameworks are crucial to handling the serialization and deserialization requirements in SOAP invocations.

Typically SOAP servers have specific custom serialization/deserialization mechanisms for XML data in SOAP payloads. In J2EE, JAXB is a core Java-based standard for XML binding. A JAXB-compliant application is able to utilize different JAXB implementations by just regenerating the schema classes without any change to the application code.

Without relying on an underlying SOAP implementation where there is variance in serialization/de-serialization mechanisms, a J2EE Web Service application can use a JAXB based XML binding framework for the payload marshalling and de-marshalling. This decoupling of XML binding from a SOAP provider increases reuse and interoperability. Further, the same XML Binding framework can be used for Web Service requests alongside applications like configuration reader etc.

Working with business entities is eased, and reuse is made possible
The binding frameworks build an abstraction layer, thereby hiding the long parsing algorithms and complexity of the DOM/SAX API. Developers need work only with business logic and not with the finer details of data binding and transformation. The business entities represented by mapped object versions of XML documents/parts of documents can be reused across multiple services. On a related front, there is ample scope for improvement of the performance of SOA-based applications by caching at the mapped object level.

Configuration and customization becomes flexible and parameterized
SOA-based applications can leverage XML to provide dynamic configuration, deployment, and customization. Since configuration/deployment files leverage XML format, the use of XML binding frameworks significantly eases dynamic configurability and customization. In the long term, it is envisaged that metadata based on XML will be the foundation of service mediation technologies to enable typical SOA needs like service versioning, service personalization, and dynamic service provisioning. In view of this, XML binding frameworks will be key constituents of SOA life-cycle management frameworks.

More Stories By Dr. Srinivas Padmanabhuni

Dr. Srinivas Padmanabhuni is a principal researcher with the Web Services Centre of Excellence in SETLabs, Infosys Technologies, and specializes in Web Services, service-oriented architecture, and grid technologies alongside pursuing interests in Semantic Web, intelligent agents, and enterprise architecture. He has authored several papers in international conferences. Dr. Padmanabhuni holds a PhD degree in computing science from University of Alberta, Edmonton, Canada.

More Stories By Bijoy Majumdar

Bijoy Majumdar is a member of the Web Services COE (Center of Excellence) for Infosys Technologies, a global IT consulting firm, and has substantial experience in publishing papers, presenting papers at conferences, and defining standards for SOA and Web services. Prior to Infosys, Bijoy Majumdar worked as an IT Analyst, and had been a member of the GE Center of Excellence (e-center) under the E-Business Practice of Tata Consultancy Services.

More Stories By Ujval Mysore

Ujval Mysore is a member of the Web Services COE (Center of Excellence) for Infosys Tehcnologies, a global IT consulting firm, and have substantial experience in publishing papers, presenting papers at conferences, and defining standards for SOA and Web services. The Web Services COE specializes in SOA, Web services, and other related technologies. Dr. Srinivas Padmanabhuni heads the Web Services COE.

More Stories By Vikram Sitaram

Vikram Sitaram is a member of the Web Services COE (Center of Excellence) for Infosys Tehcnologies, a global IT consulting firm, and have substantial experience in publishing papers, presenting papers at conferences, and defining standards for SOA and Web services. The Web Services COE specializes in SOA, Web services, and other related technologies. Dr. Srinivas Padmanabhuni heads the Web Services COE.

Comments (2) View Comments

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.


Most Recent Comments
tejasvi 08/12/05 12:13:44 PM EDT

this article is excellent

XML News Desk 08/02/05 04:46:17 PM EDT

XML Binding Frameworks in the Context of Service-Oriented Architecture. This article critically evaluates the role of XML binding frameworks play in the context of service-oriented architecture (SOA) platforms, and it also provides an objective evaluation of the popular XML binding frameworks in a J2EE environment.

@MicroservicesExpo Stories
With continuous delivery (CD) almost always in the spotlight, continuous integration (CI) is often left out in the cold. Indeed, it's been in use for so long and so widely, we often take the model for granted. So what is CI and how can you make the most of it? This blog is intended to answer those questions. Before we step into examining CI, we need to look back. Software developers often work in small teams and modularity, and need to integrate their changes with the rest of the project code b...
There is a huge demand for responsive, real-time mobile and web experiences, but current architectural patterns do not easily accommodate applications that respond to events in real time. Common solutions using message queues or HTTP long-polling quickly lead to resiliency, scalability and development velocity challenges. In his session at 21st Cloud Expo, Ryland Degnan, a Senior Software Engineer on the Netflix Edge Platform team, will discuss how by leveraging a reactive stream-based protocol,...
In his session at 20th Cloud Expo, Mike Johnston, an infrastructure engineer at Supergiant.io, discussed how to use Kubernetes to set up a SaaS infrastructure for your business. Mike Johnston is an infrastructure engineer at Supergiant.io with over 12 years of experience designing, deploying, and maintaining server and workstation infrastructure at all scales. He has experience with brick and mortar data centers as well as cloud providers like Digital Ocean, Amazon Web Services, and Rackspace. H...
SYS-CON Events announced today that Calligo has been named “Bronze Sponsor” of SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Calligo is an innovative cloud service provider offering mid-sized companies the highest levels of data privacy. Calligo offers unparalleled application performance guarantees, commercial flexibility and a personalized support service from its globally located cloud platfor...
Many organizations are now looking to DevOps maturity models to gauge their DevOps adoption and compare their maturity to their peers. However, as enterprise organizations rush to adopt DevOps, moving past experimentation to embrace it at scale, they are in danger of falling into the trap that they have fallen into time and time again. Unfortunately, we've seen this movie before, and we know how it ends: badly.
"Outscale was founded in 2010, is based in France, is a strategic partner to Dassault Systémes and has done quite a bit of work with divisions of Dassault," explained Jackie Funk, Digital Marketing exec at Outscale, in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
From personal care products to groceries and movies on demand, cloud-based subscriptions are fulfilling the needs of consumers across an array of market sectors. Nowhere is this shift to subscription services more evident than in the technology sector. By adopting an Everything-as-a-Service (XaaS) delivery model, companies are able to tailor their computing environments to shape the experiences they want for customers as well as their workforce.
If you read a lot of business and technology publications, you might think public clouds are universally preferred over all other cloud options. To be sure, the numbers posted by Amazon Web Services (AWS) and Microsoft’s Azure platform are nothing short of impressive. Statistics reveal that public clouds are growing faster than private clouds and analysts at IDC predict that public cloud growth will be 3 times that of private clouds by 2019.
"DivvyCloud as a company set out to help customers automate solutions to the most common cloud problems," noted Jeremy Snyder, VP of Business Development at DivvyCloud, in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
"We focus on SAP workloads because they are among the most powerful but somewhat challenging workloads out there to take into public cloud," explained Swen Conrad, CEO of Ocean9, Inc., in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
"As we've gone out into the public cloud we've seen that over time we may have lost a few things - we've lost control, we've given up cost to a certain extent, and then security, flexibility," explained Steve Conner, VP of Sales at Cloudistics,in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
"Peak 10 is a hybrid infrastructure provider across the nation. We are in the thick of things when it comes to hybrid IT," explained , Chief Technology Officer at Peak 10, in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
"I think DevOps is now a rambunctious teenager – it’s starting to get a mind of its own, wanting to get its own things but it still needs some adult supervision," explained Thomas Hooker, VP of marketing at CollabNet, in this SYS-CON.tv interview at DevOps Summit at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
"I will be talking about ChatOps and ChatOps as a way to solve some problems in the DevOps space," explained Himanshu Chhetri, CTO of Addteq, in this SYS-CON.tv interview at @DevOpsSummit at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
Your homes and cars can be automated and self-serviced. Why can't your storage? From simply asking questions to analyze and troubleshoot your infrastructure, to provisioning storage with snapshots, recovery and replication, your wildest sci-fi dream has come true. In his session at @DevOpsSummit at 20th Cloud Expo, Dan Florea, Director of Product Management at Tintri, provided a ChatOps demo where you can talk to your storage and manage it from anywhere, through Slack and similar services with...
If you are thinking about moving applications off a mainframe and over to open systems and the cloud, consider these guidelines to prioritize what to move and what to eliminate. On the surface, mainframe architecture seems relatively simple: A centrally located computer processes data through an input/output subsystem and stores its computations in memory. At the other end of the mainframe are printers and terminals that communicate with the mainframe through protocols. For all of its apparen...
DevOps at Cloud Expo, taking place October 31 - November 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA, is co-located with 21st Cloud Expo and will feature technical sessions from a rock star conference faculty and the leading industry players in the world. The widespread success of cloud computing is driving the DevOps revolution in enterprise IT. Now as never before, development teams must communicate and collaborate in a dynamic, 24/7/365 environment. There is no time to w...
"At the keynote this morning we spoke about the value proposition of Nutanix, of having a DevOps culture and a mindset, and the business outcomes of achieving agility and scale, which everybody here is trying to accomplish," noted Mark Lavi, DevOps Solution Architect at Nutanix, in this SYS-CON.tv interview at @DevOpsSummit at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
For over a decade, Application Programming Interface or APIs have been used to exchange data between multiple platforms. From social media to news and media sites, most websites depend on APIs to provide a dynamic and real-time digital experience. APIs have made its way into almost every device and service available today and it continues to spur innovations in every field of technology. There are multiple programming languages used to build and run applications in the online world. And just li...
Data reduction delivers compelling cost reduction that substantially improves the business case in every cloud deployment model. No matter which cloud approach you choose, the cost savings benefits from data reduction should not be ignored and must be a component of your cloud strategy. IT professionals are finding that the future of IT infrastructure lies in the cloud. Data reduction technologies enable clouds — public, private, and hybrid — to deliver business agility and elasticity at the lo...