I wrote a simple JAX-WS web service for tomcat application server on java.
I have one interface and on implementation class:
interface
@We
AFAIK it ist not possible to have JAX generate a WSDL with schemas inline.
BTW: Separating the WSDL definition and the XSD schema is a good move (you might want to use the object structure defined by the schema in a different context e.g. storing data to files or something like that).
That said: If you need an "all in one" WSDL (because some ancient client requires it) you can always have jax-ws
generate the WSDL initially and then edit it to your heart's content. The edited WSDL can be included using the wsdlLocation
parameter of the @WebService
annotation.