!> -----Original Message-----
!> From: Werner Guttmann [mailto:[EMAIL PROTECTED]
!>
!> Can I take it that you use Castor as data binding tool tightly
!> integrated with your SOAP stack ?
!>
We did at first. Everybody kind of agrees that this was a mistake as later
we found that customers who wanted to use our SOAP API wanted a WSDL to work
from. Our first iteration (more or less a proof of concept that was created
before I joined the company) was kind of an ad hoc thing that evolved into
the product. Then we used a WSDL and Axis to generate the Java classes and
marshalling/unmarshalling.
We still use and maintain the Castor mappings since we still have need to
read/write the POJOs to XML files on the client side for import/export (our
product is business semantics/ontologies/taxonomies and such - schemas
actually, metadata about metadata).
!> That's why I'd personally would not use a mapping file when starting
!> from an XML schema. When a schema chanages, I'd simply regenerate the
!> classes ... et voila. No manual intervention required, no need to
!> rememember that you have to (again manually) keep the domain objects (as
!> generated) and the mapping file in sync.
!>
In my particular case, the schema doesn't change a lot or very often. It is
very stable and not refactored hardly at all.
Once in a while somebody needs to add a single property (as in every six
months or so), usually something simple like an int or string - and like I
said, we have the unit tests which help (halfway). I can see many cases
where having the classes generated from the schema automatically would be
very useful, especially when refactoring it a lot, but in my case I think it
is a bit of overkill. Once I have the schema in the mapping file it is very
stable.
!>
!> >For some reason I could not get
!> > the Mapping Tool to work from the command line ...
!> I'd like to know about this if this is still the case, to be honest.
!>
I am sure it was just that I didn't understand how to pass it the correct
command line params.
--
Internal Virus Database is out-of-date.
Checked by AVG Free Edition.
Version: 7.5.430 / Virus Database: 0.0.0/0 - Release Date: <unknown> 12:00
AM
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email