James,
I'd really encourage you to use Castor with any of the web service
frameworks as described in the articles referred to below or as
mentioned on the respective web sites. I really cannot see a point in
going for the approch as described by yourself at the bottom of you email.
Apart from integration of Castor into Axis, there's solid support for
Castor in both Xfire and Spring ws (where with a recent release, the XOM
package has been made available stand-alone). Have a look at
http://static.springframework.org/spring-ws/site/reference/html/oxm.html
to see how to integrate Castor with Spring WS and at
http://xfire.codehaus.org/Castor
I hope this addresses some of your questions. Feel free to push us if
you need more help.
Regards
Werner Guttmann
Castor, committer
James Cowan wrote:
What is the best way to use castor within a webservices environment?
I can see these articles about integrating :
http://www.ibm.com/developerworks/webservices/library/ws-castor/
http://www.sosnoski.com/presents/cleansoap/axis.html
It does not feel particularly clean. Are there any better ways to do it?
Is using another soap implementation that integrates better with castor
(xfire?)?
One alternative I have though of is to generate my data model as normal
using Castor and write the service interfaces/mplementations that
reference the castor classes by hand and then use the java2wsdl to
generate the wsdl. Does that sound like a reasonable approach?
Does Spring webservices help in any way to simplify things?
James
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email