users@glassfish.java.net

Re: webservices

From: <glassfish_at_javadesktop.org>
Date: Wed, 09 Jan 2008 08:50:08 PST

Hi. The easiest way to define a complex type is to use the @XmlSeeAlso tag that's part of JAX-WS 2.1. There's a sample bundled with JAX-WS 2.1 that demonstrates it's use, type_subsitution. You don't need to write an XML schema, but the custom classes should be JavaBeans.

Look at the service class here for an idea for how it works:
https://jax-ws.dev.java.net/jax-ws-21-ea3/samples/type_substitution/src/type_substitution/server/CarDealer.java
[Message sent by forum member 'ievans' (ievans)]

http://forums.java.net/jive/thread.jspa?messageID=253007