开发者

netbeans custom jax-ws stubs

开发者 https://www.devze.com 2023-02-03 13:14 出处:网络
I am using netbeans 6.9. I have made a JAX-WS service that returns a complex type, I have also made a JAX-WS client to consume it.

I am using netbeans 6.9. I have made a JAX-WS service that returns a complex type, I have also made a JAX-WS client to consume it. The JAX-WS system automaticly creates a class for the client, inferred from the WSDl spec. I want to make my own class for this using JAXB annotations, so that I can add some extra functions to it.

How do I go about replacing the autogenerated file with my own one? Could I also use the same class in the service to control ho开发者_运维百科w it is transmitted?

Thanks!


Why replace the generated class? From your description, it sounds like a good case for using the Decorator design pattern.

I have done this on a JAX-RPC project, and it worked very well.

0

精彩评论

暂无评论...
验证码 换一张
取 消