If the web service is created from a WSDL file, the service endpoint interface and implementation classes and all other artifacts are generated when the web service is created. Building the project will not regenerate these files, that is, the wscompile tool is not called. There may be cases when you would want to regenerate the web service artifacts. For example, you may have changed the wscompile features or options for the web service. In this case, you will have to explicitly call the compilation target in the Ant build script that was generated for the web service. However, if you do so, note that you will lose all the changes that you may have made in the implementation class of the web service.
To regenerate a web service created from a WSDL file: