Creating and Using Custom Objects
This section presents a very simple example of how to include a named object in a service. It uses the DayOfWeek example as a basis. Below are the four steps described in this example. They are the same basic steps needed for the creation and use of any named object.
1. Create some code for a simple string object.
2. Create an entry point into the code by defining a create() method.
3. The dayofweek_objects.xml file is expanded to define this object.
4. The DayOfWeek service code obtains and returns the string object.