OpenEdge Web services sample applications come installed with a set of helper classes that you can use to manipulate TABLE-HANDLE parameters. For example:

  • ColumnMetaData.java — Represents the schema of a column, as shown:
    public class ColumnMetaData { 
       protected String name;
       protected int type; 
       protected int extent;
    ...}
  • RowSet.java — Represents the XML Schema and data for a TABLE-HANDLE parameter, as shown:
    public class RowSet { 
       private Vector m_rows; 
       private ColumnMetaData[ ] m_schema; 
    ...}

    In the RowSet class, m_rows is a Vector of rows, each of which is a Vector of column data. Each column datum is a Java object appropriate for the column data type. The m_schema variable is the ColumnMetaData array representing the schema for the temp-table.

  • SchemaParser.java — Parses the <schema> element from a SOAP response message and creates a ColumnMetaData array for the RowSet class, as shown:
    public class SchemaParser
    {    protected ColumnMetaData[ ] m_schema;
    ...}