Sun POJO Service Engine User's Guide

Creating a POJO Service Consumer (Without Binding)

This procedure creates a service consumer within an existing service provider definition. Dragging and dropping a consumer into the Java code creates a framework for the service consumer, which you can then customize with the needed processing logic. There is no WSDL document or binding involved in this procedure; a binding can be added when you create the composite application.

ProcedureTo Create a POJO Service Consumer (Without 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 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 Service Consumer Wizard appears.

    Figure shows the POJO Service Consumer Wizard.
  4. Fill in the consumer properties, as described in POJO Service Consumer Properties.

  5. 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 (Without Binding).