Chapter 4 XML Processing
153
data binding technologies from the schemas of consumed and produced docu 
ments. To change to a pure object centric model, the developer may move the
dependencies on the schemas down by mapping schema derived objects to
domain specific objects. The domain specific object classes expose a constant,
consistent interface to the business logic but internally delegate the XML process 
ing details to the schema derived classes. Overall, such a technique reduces the
coupling between the business logic and the schema of the processed documents.
 Abstracting XML Processing from Application Logic  on page 155 discusses a
generic technique for decoupling the business logic and the schema of the pro 
cessed documents.
A pure object centric processing model requires XML related issues to be
kept at the periphery of an application that is, in the Web service interaction
layer closest to the service endpoint, or, for more classical applications, in the
Web tier. In this case, XML serves only as an additional presentation media for the
application's inputs and outputs. When implementing a document oriented work 
flow in the processing layer of a Web service, or when implementing the asyn 
chronous Web service interaction layer presented in  Delegating Web Service
Requests to Processing Layer  on page 92, an object centric processing model
may still be enforced by keeping the XML related issues within the message 
driven beans that exchange documents.
Note that the object  and document centric processing models may not be
exclusive of one another. When using the flexible mapping technique mentioned
earlier, an application may be globally document centric and exchange documents
between its components, and some components may themselves locally process
part of the documents using an object centric processing model. Each component
may use the most adequate processing model for performing its function.
4.3.6 Fragmenting Incoming XML Documents
When your service's business logic operates on the contents of an incoming XML
document, it is a good idea to break XML documents into logical fragments when
appropriate. The processing logic receives an XML document containing all infor 
mation for processing a request. However, the XML document usually has well 
defined segments for different entities, and each segment contains the details about a
specific entity. 






New Page 1








Home : About Us : Network : Services : Support : FAQ : Control Panel : Order Online : Sitemap : Contact : Terms Of Service

java web hosting

 

 

 Our partners: | PHP: Hypertext Preprocessor | Best Web Hosting | Java Web Hosting | Inexpensive Web Hosting |

Jsp Web Hosting | Cheapest Web Hosting | Jsp Hosting | Cheap Hosting

 

Virtualwebstudio. Business web hosting division of Web Design Plus. All rights reserved