Netbeans custom jax-ws stubs

I am using netbeans 6.9. I made a JAX-WS service that returns a complex type, I also made the JAX-WS client use it. The JAX-WS system automatically creates a class for the client derived from the WSDl specification. I want to make my own class for this using JAXB annotations so that I can add extra features to it.

How can I change the autogeneration file to my own? Can I use the same class in a service to control how it is passed?

Thanks!

+4
source share
1 answer

Why replace the generated class? From your description, this seems like a good example of using the Decorator design pattern .

I did this in the JAX-RPC project and it worked very well.

0
source

Source: https://habr.com/ru/post/1334834/


All Articles