Thanks for the reply.

I'm no Web Service guru, but my understanding is that the object is
transformed into an XML payload when sent from the client to the server.
Once the server receives the XML post, it unmarshals the XML into object
representations. That's why I figured I could get this to work very
easily/quickly.

I am going to keep looking into this and will post any helpful information I
find.



On 6/7/07, Peter Schröder <[EMAIL PROTECTED]> wrote:

hi michael,

we did some basic testing on sending cayenne classes via axis 1.4.
that didnt really work out, because persistent objects provide references
to unserializable objects.
i think that this might be handled by a custom de-/serializer, but we did
no further investigation.

kind regars,
peter

-----Ursprüngliche Nachricht-----
Von: Michael Lepine [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 7. Juni 2007 17:36
An: [email protected]
Betreff: Cayenne Generated Classes in Web Service API

This may be off topic but hopefully it's not considered to be.

I am researching options for creating a web services-based API for our
company's flagship product. The data model backing the application has
quite
a few tables. A lot of the functionality we want to support involves
exporting or importing entities with multiple one-to-many relationships
with
other tables.

My planned approach was to suck in the schema and generate the Java
classes
with Cayenne, which would do all the hard work for me related to creating
beans with the proper one-to-many relationships. This (of course) worked
great.

The second part of my plan was to use the Cayenne-generated Java classes
in
my Web Services API. I figured that by using those classes in the API, the
generated WSDL for my service would include a schema definition of the
objects (and all relationships) saving me a lot of time. I'm using AXIS2
from Apache to generate and run the service, and the WSDL does not include
a
full definition of the Cayenne classes as I'd hoped.

I was wondering if anyone else is using Cayenne-generated Java classes in
Web Services that they've written and if so, did you do anything
special? Were there any issues that you encountered. Any advice that may
help?

- Mike

Reply via email to