Creating a Web Service from Java

See Also 

  1. Depending on the implementation form, do one of the following:
  2. In the Projects window or Files window, right-click the project node and choose New > Web Service.
  3. The New Web Service wizard opens.

  4. Type the web service name and specify a package to house the web service.
  5. Select the creation type:
  6. Click Finish.

    For JAX-WS web services (Java EE 5 specification), the IDE creates an implementation class. The implementation class is created with the required web service annotations and import statements.

    For JAX-RPC web services (J2EE 1.4 specification), the IDE runs the wscompile tool. The IDE provides the following:

    By default, both files are housed in a package within your project's src folder (in the Files window) and you can access it in the Source Packages node (in the Projects window).
  7. Use the Source Editor to develop the web service.
  8. See Also
    About Web Services
    About Implementing Web Services
    Creating a Web Service from a WSDL File
    Creating a WSDL File

    Legal Notices