The Artima Developer Community
Sponsored Link

Java Buzz Forum
Simple Prescription for Web Services Serialization Headache

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Paul Brown

Posts: 284
Nickname: paulrbrown
Registered: Dec, 2003

Paul Brown is an entrepreneur
Simple Prescription for Web Services Serialization Headache Posted: Aug 6, 2004 10:10 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Paul Brown.
Original Post: Simple Prescription for Web Services Serialization Headache
Feed Title: mult.ifario.us
Feed URL: http://feeds.feedburner.com/MultifariousCategoryJava
Feed Description: Software. Business. Java. XML. Web Services.
Latest Java Buzz Posts
Latest Java Buzz Posts by Paul Brown
Latest Posts From mult.ifario.us

Advertisement
The worst of the commonly held misconceptions about web services is a service is somehow a new take on distributed objects (which Werner Vogels does a great job of debunking), but web services can still benefit from some of the standard best practices for building distributed applications.The suggestion I have in mind is to use data transfer objects (aka DTOs) to decouple what goes on the wire from what the application interacts with. The classic motivation for DTO is to insulate a remote facade from fine-grained interaction, and I claim that this is essentially what we're doing, although the motivation is to insulate the application from fine-grained manipulation of wire-format data.The following order of operations is suggested: Design the desired web services at the service level, i.e., create the WSDL and XML schema. Either use a tool (like AXIS's WSDL2Java) or hand-map the wire-format XML to an as-dumb-as-possible local representation. By "as-dumb-as-possible", I mean that the local representation should not do anything other than act as a container for data. A good measure of dumbness in Java is that all methods should either start with "get" or "set" - or that there are no methods at all). (DTO makes sense here, but I also like to call these DDB - "dumb data buckets" - to make their role explicit.) Follow the rest of the classic DTO pattern and do what you need to do with the domain objects. I definitely agree that versioning and extensibility of XML schemas is a challenge that needs to be addressed, but I also think that web services architects should be insulating applications from it by design.

Read: Simple Prescription for Web Services Serialization Headache

Topic: Review: Java Desktop System Release 2 Previous Topic   Next Topic Topic: Project Looking Glass - Not Just 3D desktop

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use