Rules for Declaring a Business Service Public Method

When you declare a public method for a business service class, follow these rules:

  • Business service classes must expose public static methods to a published business service class. A business service class cannot contain instance variables or nonstatic methods.

  • Business service methods that are to be used by a published business service must return an E1MessageList object to that published business service. The caller of the business service determines how to handle the errors and whether to create and throw an exception. The signature of the business service method must contain IContext and IConnection objects and a value object class that represents an internal value object that passes values to the business function calls.