tags:

views:

511

answers:

0

I have some XML type in Java classes which are defined in XSD and generated by XJC.

Then I write some java methods with JAX-WS Annotation, and let those generated Java classes of XML type as parameter types of the web services.

The code is deployed on Geronimo. And Geronimo should run some WsGen tasks to generate WSDL and service runtime.

XSD --<JAXB/XJC>---> XML type in Java classes -----------> web service (JAX-WS Annotation)
                                                                 |
                                                                 | Deploy on Geronimo (WsGen)
                                                                 |
                                                                \|/
                                                                WSDL
                                                                 |
                                                                 | (WsImport)
                                                                 |
                                                                \|/
                                                              Client

On the client side, I run WsImport to generate client stubs for web services.

The question is...how can I reuse the XML type java classes at client side, instead letting WsImport generate again those XML type java classes.

I found this article http://jamablog.blogspot.com/2007/08/how-to-make-jax-ws-client-to-reuse.html

But I don't know how to apply on my situtation.