Version 5.3.1
 —  Natural Business Services Getting Started  —

Using Natural Business Services

This section describes the step-by-step procedure to create a business service and provides links to additional information. The following topics are covered:


Administer Business Services

Administrators can use the Business Service repository explorer in the Natural Business Services plug-in to deploy business services and to apply security to services.

Top of page

Configure the Plug-in

Before you can create a business service, you must confirm that the environments are set up correctly.

Top of page

Create a New Business Service

A business service consists of a collection of methods related to a common business entity. The best way to create a business service is to use the Business Service wizard in the Natural Business Services Eclipse or Natural plug-in. Each plug-in provides a repository explorer you can use to select and test a service.

During generation, the Business Service wizard creates a subprogram proxy to translate data (including Unicode formats) and then adds an entry in the repository explorer. It also generates additional subprograms as required.

This section describes how to use the Business Service wizard to create a business service based on existing Natural subprograms. You can also use the wizard to create business services by generating new subprograms or by creating an empty service skeleton.

Notes:

  1. For information on these and other options in the Eclipse plug-in, see Developing Business Services/Create a Business Service. For information on these and other options in the Natural plug-in, see Developing Business Services/Create a Business Service.
  2. The examples used in this section are taken from the Natural Business Services Eclipse plug-in. Some options may not be available with other plug-ins.

Start of instruction setTo create a new business service:

  1. Select the connection for the business service in the NBS Repositories view.

    If required, enter the user ID and password for the connection.

    Note:
    You must use a SPoD connection to create a business service.

  2. Expand the Domains node.

    The list of domains is displayed.

  3. Open the context menu for the domain in which you want to generate the service.

  4. Select Create business service.

    The Define the Service panel is displayed. For example:

    graphics/bsw-define-the-service.png

  5. Select Based on existing subprogram(s).

    The Select Subprograms panel is displayed. For example:

    graphics/bsw-select-subprograms.png

  6. Select Refresh.

    A list of available subprograms for the current library is displayed.

  7. Select the subprogram you want to use.

  8. Select Add.

    The selected subprogram is listed in Selected subprogram(s).

  9. Select Next.

    The Define Methods panel is displayed. For example:

    graphics/bsw-define-methods.png

    Use this panel to define the methods the business service will expose to the consumer. Each time you type a method name and select Add, the method is listed in Method Name. Also use this panel to provide a brief description of the subprograms to be generated.

  10. Select Next.

    The Enter Service Name and Select Domain panel is displayed. For example:

    graphics/bsw-enter-service-name.png

  11. Enter the name of your service in Business service name.

    This name should clearly identify the service (for example, CustomerWithContacts).

  12. Select the business domain from Business domain name.

  13. Verify the version number in Version number.

    Version numbers help protect changes to the service that can disrupt client communications. Use version 1.1.1 (default) for a new service.

  14. Type the service identifier for generated subprograms in Identifier.

    The service identifier can be up to five characters in length and will be used with a wizard-generated prefix and suffix to identify the generated subprograms used for this service.

  15. Type a brief description for your service in Service description.

  16. Select Finish to generate the business service.

    The Generation Status window is displayed, showing the progress of the generation. When generation is completed, the window shows the names of the files generated for the business service.

    The Results column indicates that the generated files have been generated for the first time (New).

You have successfully generated and saved a new business service. For information on testing your business service, see Test a Business Service.

Note:
For information on testing a business service with the Natural plug-in, see Test a Business Service.

Top of page

Create a Client Consumer

A client consumer is anything that uses a business service. You can create client consumers in several different ways. For example, you can create client proxies classes (and, optionally, Web services) in Java or .NET to consume business services. For information:

Plug-in/Add-in Described In
Eclipse plug-in Developing Client Proxy Classes and Web Services
Visual Studio add-in Creating a Client Proxy Class and Creating a Web Service.

Top of page