Hi, Let me know if I am misunderstanding your problem. I believe what you are doing is generating from the WSDL with standard settings so Axis2 is generating files with a XSkeleton.java where you put your implementation. If that is the case I would set up the Axis2 plugin to create an interface from the WSDL rather than the skeleton class itself. That way you can recreate the interface at will whenever the WSDL changes and just implement the interface with your own class. This does mean that your class will generate compile errors each time something major changes or a new method is added that your class does not implement, you will just have to change your implementation to match the interface and you're good to go.
David This e-mail and any files transmitted with it may contain confidential and privileged material for the sole use of the intended recipient. Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorised to receive for the recipient), please contact the sender by reply e-mail and delete all copies of this message. -----Original Message----- From: Chang Xing [mailto:[email protected]] Sent: Wednesday 27 May 2009 3:52 PM To: [email protected] Subject: what is the best way to generate java code when the wsdl is changed? Hi I am using Eclipse with axis2 plugin to generate Java code from a wsdl file. the wsdl file is changed frequently. so I need to regenerate the Java code from the wsdl. But if I generate code to the same project, it will take a long time and the skeleton java file won't be generated again because there's already a skeleton file( I guess so). So I have to create another java project and generate code to this project from the wsdl file. Does anybody have a better way to do this work? Thanks Chang
