You are right. The generator will use the "existing" ResponseWrapper/RequestWrapper to generate wsdl. And if you delete the WrapperBean, generator will generate the new WrapperBeans firstly. When you delete the wrappers, you'd better use "clean" tool to re-generate the wsdl.
Additionally, the coming release of STP will have a new java first tool integrated with CXF 2.1 and this problem will be resolved. Just find a way to work around. If modifying existing method, I need to manually delete ResponseWrapper/RequestWrapper first before it could re-generate wsdl. I was assuming it would override those wrappers. But obviously it is not. @WebMethod(operationName="sayHi", exclude=false) @ResponseWrapper(className="demo.spring.SayHiResponse", localName="sayHiResponse", targetNamespace="http://spring.demo/") @RequestWrapper(className="demo.spring.SayHi", localName="sayHi", targetNamespace="http://spring.demo/") public java.lang.String sayHi( java.lang.String text, java.lang.Boolean isName, java.lang.Integer name ); I try 1)adding a new method and 2)removing a method. It does regenerate wsdl file. But when I change the signature for existing method such as adding/remove one parameter, it's NOT update wsdl file. ---------------------------------------------------------- Hi, You should re-build your project after you have changed the service. Then the wsdl will be regenerated. Or, you can set auto-build option from menu [Project-> Build Automatically]. And then the project will be built automatically after you have changed the service. Furthur more, I have double-checked that the wsdl would be changed if the service changed, such as adding a new method, changing the name of a method, removing a method and so on. yulinxp wrote: > > I have followed your steps. But I still have the same problem when trying > to regenerate wsdl file. > I don't have "Generate WSDL" option in the popup menu when right click the > "Project" . > > > > Jonathan Huang wrote: >> >> Hi Tophebboy, >> Please follow the steps to try again :) () >> 1. Download the eclipse sdk 3.3 from: >> http://www.eclipse.org/downloads >> 2. Download the all-in-one STP package from: >> >> http://www.eclipse.org/downloads/download.php?file=/stp/downloads/drops/R-R200710161054-200710161054/stp-all-in-one-incubation-R-R200710161054-200710161054.zip >> 3. Un-pack these two packages to one folder. >> 4. Download the CXF 2.0.3 runtime from: >> http://incubator.apache.org/cxf/download.html >> 5. Un-pack the cxf package to some folder. >> 6. Start eclipse from the location where you just un-pack the eclipse >> sdk and stp packages. >> 7. Click [Window]-->[Preferences...]-->[SOA Tools]-->[Installed >> Runtimes] to add a "Apache CXF 2.0" runtime. >> 8. Start the java first project wizard and chose the runtime you just >> create in the runtime page. >> 9. Then do what you want do... >> >> >> > > -- View this message in context: http://www.nabble.com/Refactoring-a-WSDL-with-CXF-and-Eclipse...-tp13899015p14523777.html Sent from the cxf-user mailing list archive at Nabble.com.