Invoke a method with a TABLE-HANDLE parameter
- Last Updated: January 3, 2024
- 2 minute read
- OpenEdge
- Version 12.2
- Documentation
To invoke a method that passes a TABLE-HANDLE parameter:
- The client application must create and send an XML Schema along with the data to fully
describe the dynamic temp-table in the SOAP request message. The
TABLE-HANDLEparameter in a SOAP request or response consists of an XML<DataSet>element containing two child elements:- An XML Schema element,
<schema>, representing the schema for theTABLE-HANDLE - An XML representation of data using an element,
<Data>, with each row represented as a sub-element,<Item>
- An XML Schema element,
- A non-ABL client application must parse the XML Schema and data from the SOAP response
message to make the
TABLE-HANDLEaccessible as native data within the application.
This is the ABL prototype for a sample method, dynttIO( ), that passes a
TABLE-HANDLE parameter:
ABL prototype that passes a TABLE-HANDLE parameter
|
This is the declaration for a VB.NET client interface method (dynTTIO( )) which has a TABLE-HANDLE parameter, ttHandle, as a VB.NET
object:
|
The following VB.NET client code passes the dyntt object representing a
TABLE-HANDLE to the dynttIO( ) method:
|
For more information on how you might manage TABLE-HANDLE parameters in VB.NET, see the topic Develop a .NET Client to Consume OpenEdge SOAP Web Services. For Java, see the topic Develop a Java Client to Consume OpenEdge SOAP Web Services.
This is the structure of the Doc/Lit SOAP request message that the sample
dynttIO method sends to pass a dynamic temp-table that
you create for the ttHandle TABLE-HANDLE parameter:
|
The ttHandle TABLE-HANDLE parameter becomes an XML <ttHandle> element containing the <DataSet> element that contains the schema and the data.
dynttIO( ) is
invoked.This is a sample XML Schema created by VB.NET for the TABLE-HANDLE contained by the sample <DataSet> element in the sample Doc/Lit SOAP request:
|
Note the definition of the <Data>
element containing the data for the table, and how the column type information is specified
within the <Item> element.
This is a sample <Data> element you
would create to accompany the specified schema in the sample Doc/Lit SOAP request, including
the column values for the two rows initialized in the sample VB.NET code:
|