Most of the class names and filenames for Web services are generated automatically by the wizard. As a result, certain circumstances can result in naming conflicts. For example, if you create a Web service from a Nucleus method, you cannot then create a second Web service from another method with the same name (such as an overloaded method) and put it in the same WAR file, even if the two methods have different signatures or capitalization. If you attempt to do this, the second Web service will simply overwrite the first.

To prevent the second service from overwriting the first, put the second service in a different WAR file. In addition, be sure to give the second WAR file a different context root from the first WAR file. (The default value for the context root in the wizard is based on the method name, so you’ll need to change the value when you run the wizard.) It will then be possible to differentiate calls to the two services based on their context roots.

 
loading table of contents...