With JAXB binding files, you can assign pre-generated "impl" types to
the schema types.
See:
http://svn.apache.org/repos/asf/cxf/trunk/common/schemas/src/main/resources/schemas/wsdl/ws-addr-wsdl.xjb
for an example.
Dan
On Jun 12, 2008, at 11:30 AM, Ben Berner wrote:
I have generated my domain classes (with middlegen tool for
hibernate) and
there is a operation in my wsdl document that returns a domain
object (e.g.
Employee), so I have to define that domain object as a port-type
(<xs:complexType name="employee">...</>)in the wsdl document. Now
when I
run wsdl2java, won't this overwrite my pre-existing domain class
(Employee.java, that has been decorated with annotations for
persistence by
hibernate), as wsdl2java will generate this type when going contract
first
development? Or is there a way, I can ask wsdl2java not to generate
that
particular domain object and just reuse the existing class?
Regards,
Ben
---
Daniel Kulp
[EMAIL PROTECTED]
http://www.dankulp.com/blog