Web Service Tasks: Quick Reference

This topic describes common tasks you can perform with web services. For more detailed information, click the links in the right column.

To perform this task Follow these steps
Create a project.
  1. Choose the implementation form for your web service.
  2. Choose File > New Project (Ctrl-Shift-N).
  3. Select the right template for your project. 
Add a JAR file to a project's classpath.
  1. In the Projects window, right-click the project node and choose Properties.
  2. Click Libraries.
  3. Click Add JAR and select the JAR file in the file chooser.

    If you also want to attach source code and Javadoc for the JAR file, click Add Library instead.

Set up compilation dependencies between projects.
  1. In the Projects window, right-click the project node and choose Properties.
  2. Click Libraries.
  3. Click Add Project and select the project folder for the project that you want to add to the project's classpath.
Create a web service.
  • Right-click the project and choose New > Web Service.
Build a project.
  1. Make sure that your resources are on the classpath.
  2. Choose Run > Build Main Project (F11) or right-click any project node and choose Build.
Clean a project.
  • Right-click the project node and choose Clean Project.
Run a project.
Modify deployment settings.

Do one or both of the following:

  • Change the browser
  • Use the Run tab in the Project Properties dialog box to change the server.
Test a web service.
Debug a project.
  • Choose Debug > Debug Main Project (Ctrl-F5) or right-click any project and choose Debug.
Attach source code to libraries for debugging.

Instead of debugging the source code of a library that you created in the IDE, debug the project where you created the library. But, if you want to debug a library created outside the IDE, do the following:

  1. Choose Tools > Library Manager from the main window.
  2. If the JAR file is not already registered in the Library Manager, create a new library using the Add Library button.
  3. Select the library in the left panel of the Library Manager.
  4. In the Classpath tab, click Add JAR/Folder and specify the location of the JAR file containing the compiled class files. A library can contain multiple JAR files.
  5. In the Sources tab, add the folder or archive file containing the source code.
Add Javadoc to a project.
  1. Choose Tools > Library Manager from the main window.
  2. If the JAR file is not already registered in the Library Manager, register the JAR file as described above.
  3. In the Javadoc tab, click Add ZIP/Folder and specify the location of the Javadoc files.
Set the main project.
  • Right-click the project node and choose Set Main Project.

Legal Notices