Deleting JAX-RPC Web services

Once you have created a JAX-RPC Web service, you may want to delete it. The instructions in this document describe the basic steps that you can take to delete the service.
The Web service wizards update or generate several files as part of creating a new Web service. The files that are updated or created when deploying a WebSphere® JAX-RPC Web service to a Dynamic Web Project are:
  • JavaSource/my/pkg/MyServiceSOAPImpl.java - this is the skeleton created in a top-down Web service
  • JavaSource/my/pkg/MyService_SEI.java (bottom-up) or JavaSource/my/pkg/MyService_PortType.java (top-down)
  • WebContent/WEB-INF/MyService_mapping.xml
  • WebContent/WEB-INF/ibm-webservices-bnd.xmi
  • WebContent/WEB-INF/ibm-webservices-ext.xmi
  • WebContent/WEB-INF/web.xml
  • WebContent/WEB-INF/webservices.xml
  • WebContent/WEB-INF/classes/.../*.class - built from the above .java files.
  • WebContent/WEB-INF/wsdl/MyService.wsdl
  • WebContent/wsdl/my/pkg/MyService.wsdl
Note: Actual filenames may vary from service to service, and between top-down and bottom-up approaches.

To delete a Web service, you do not have to undo all the changes made by the wizard. There are a few steps you must take at minimum:

  1. Open webservices.xml in the Web Services Editor.
  2. Click the Web Services tab. Under Web service descriptions, delete your service.
  3. Click the Extensions tab. Under Web Service Description Extension, delete your service.
  4. Click the Bindings tab. Under Web Service Description Bindings, delete your service.
  5. Save and close the editor.
  6. Open web.xml in the Deployment Descriptor Editor.
  7. Click the Servlets tab. Under Servlets and JSPs, remove your service.
  8. If asked if you want to remove the servlet java class, select the checkbox ONLY if you want the tools to delete your Web service implementation class/source. If you originally created the Web service using a bottom-up approach, then this is the class you provided to the Web service wizard. If you originally created the Web service using a top-down approach, then this is the skeleton class generated by the Web service wizard and then most likely implemented by you.
  9. Save and close the editor.
  10. Optional
    1. Delete the _mapping.xml file for your service.
    2. Delete the _SEI.java / _PortType file for your service.
    3. Delete the deployment .java files for your service, namely stubs, serializers, deserializers and helpers.
    4. Delete the development .java files for your service, such as the implementation class (aka. servlet class from step 8 above) and any value types.
    5. Delete the relevant WSDL documents or the services within.

Feedback