Sun POJO Service Engine User's Guide

Creating a POJO Service Provider (With Binding)

This procedure creates a POJO service provider using a wizard to guide you through the steps. This wizard includes the steps for configuring the binding component for the service provider and automatically generates the WSDL file.

ProcedureTo Create a POJO Service Provider (With Binding)

  1. Right-click in the NetBeans Projects window, and then select New Project.

    The New Project Wizard appears.

  2. Under Categories, select Java; under Projects, select Java Application.

    Figure shows the Choose Project window of the
New Project Wizard.
  3. Click Next.

    The Name and Location window appears.

  4. Enter a unique name for the project and a name for the main Java package and class.

    Figure shows the Name and Location window of
the New Java Application Wizard.
  5. Click Finish.

    The project structure is generated and appears in the Projects window.

    Figure shows the project structure for a Java
Application project.
  6. Right-click the project you just created, point to New, and then select Other.

    The New File Wizard appears.

  7. Under Categories, select ESB; under Projects, select POJO Service for Binding.

    Figure shows the Choose File Type window of the
New File Wizard.
  8. Click Next.

    The Name and Location window for the WSDL file appears.

  9. Fill in the Name and Location properties for the POJO service.

    For more information, see Table 3.

    Figure shows the Name and Location window for
the WSDL binding.
    Note –

    The sequence of steps changes to reflect the binding component and type you choose. The subsequent steps will vary depending on those two properties.


  10. Click Next.

    The binding configuration window appears.

  11. Enter information about the binding component and type, and then click Next.


    Note –

    This page varies by binding component and type. For more information about a specific binding component, refer to the user's guide for that component or refer to the property descriptions at the bottom of the window. An example for the File Binding Component is shown below.


    Figure shows the POJO Service for Binding Wizard
for a File Binding Component.
  12. If a second page of binding configuration appears, enter the required information and then click Next.

  13. On the Name and Location window for the POJO service, fill in the fields described in Table 1.

  14. On the New POJO Service Wizard, click Finish.

    The new POJO class and WSDL file are generated in the project structure and any library JAR files needed to compile the project are added to the Libraries node of the project. The POJO file includes the @Provider, @Operation, and @Resource annotations.

    Figure shows the code framework generated for
a POJO service provider for binding.
Next Steps

For instructions on creating a composite application for this project, see Creating a Composite Application for a POJO Service Provider (With Binding).