Sun POJO Service Engine User's Guide

ProcedureTo Create a POJO Service Consumer (With Binding)

Before You Begin

The POJO service consumer can only be added within an existing provider. Make sure you have a provider defined in the Java class before beginning this procedure.

  1. Open the Java file to which you want to add the POJO service consumer.

  2. If the Palette is not visible, click Window in the NetBeans toolbar and then click Palette.

    The Palette appears to the right of the Java Editor.

  3. Drag and drop a POJO Binding Consumer from the Palette to the location in the service provider in the Java file where you want to insert to POJO service consumer.

    The POJO SE Binding Service Consumer Wizard appears.

    Figure shows the POJO SE Binding Service Consumer
Wizard.
  4. Fill in the name and location properties, as described in POJO Service Properties for 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.


  5. Click Next.

    The abstract binding configuration window appears.

  6. 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 HTTP Binding Component is shown below.


    Figure shows an example of an HTTP Binding Component
configuration.
  7. If a second page of binding configuration appears, enter the required information and then click Next.

  8. On the Name and Location window for the POJO service, the interface and operation fields are automatically populated. Fill in the fields described in Table 4 beginning with Invoke Pattern.

  9. Click Finish.

    The @ConsumerEndpoint annotation and related methods are added at the insertion point.

Next Steps

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