JiBX data binding allows you to map XML directly to your domain objects,
while maintaining a fairly loose coupling between the XML and the
objects. A binding definition is used to specify how the XML relates to
the objects.
- Dennis
Dennis M. Sosnoski
SOA and Web Services in Java
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117
Robert Monical wrote:
Transfer objects. I create a class for each required transfer. In some
cases, more than one domain class maps to a Web class.
At 04:02 PM 3/15/2007 -0400, Josh wrote:
Robert,
My application has an existing domain/service layer that does not map
1:1 with the entities that will be used on the wire. My process thus
far has been to create a schema for the web service input/output and
generate the java objects that map to them. What I am left with is
still two different object models. Just like we use Hibernate/Ibatis
to map between objects and tables, I would like to map between these
two layers of objects. This way, the web service layer can change
independently from my existing domain/service layer. What are you
using for your mapping layer?
Joshua
On 15 Mar 2007 17:48:58 -0000, *Robert Monical* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
I use a mapping layer to go from WSDL generated to Domain
Objects. Since this is a legacy system and the domain objects
are reversed out of a database with Hibernate we have information
in the domain objects that is not relevent to the Web service
interface.
If you have the ability/desire to tightly couple the Web service
to your domain, then maybe you don't need to do a mapping. I'ld
be nervous.
>-----Original Message-----
>From: [email protected] <mailto:[email protected]>
>Sent: 03/15/07 - 12:18
>To: [email protected] <mailto:[email protected]>
>Subject: RE: Better way to map from axis generated objects to
domain?
>
>Hello,
>
>Starting from a wsdl/schema, Axis will generate some plumbing
>code/objects
>to marshal/unmarshal xml. Is there an easier way to map to/from
these
>generated object to my corresponding domain objects? Is anyone
using
>any
>mapping layer to do this? What are the best practices for
insulating
>your
>existing java code from changes to the code generated by Axis?
>
>Thanks,
>
>Joshua
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
Robert Monical
[EMAIL PROTECTED]
Cell: 402-203-6533
Fax 509-461-5317
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]