Declaring Public Methods for a Published Business Service

Published business service classes expose public, nonstatic methods. Declaring a public method exposes it to third-party systems.

This code sample shows a published business service declaring a business service method:

  public ConfirmAddAddressBook addAddressBook
  (AddAddressBook vo) throws BusinessServiceException{
   ...
   }

When you use the Published Business Service wizard to create the published business service class, the wizard also creates a public and protected method. For additional methods, you can use code templates to generate Java code. The E1PM – EnterpriseOne Published Business Service Method code template generates code for both public and protected methods of a published business service class. You use a code template in the source code. After you generate code using the code template, you press the Tab key to move through the highlighted fields to complete the generated code. The generated code contains TODO: tags that help you.