Invoke a method with a TABLE parameter
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
To invoke a method that passes a TABLE parameter, the client application
typically must:
- Create rows using the interface object that represents the
TABLErow - Insert the rows in an array that represents the
TABLEparameter
This is the ABL prototype for a sample method, staticTT( ), that passes a
TABLE parameter:
ABL prototype that passes a TABLE parameter
|
This is the declaration for a VB.NET client interface method, staticTT( ), which has a TABLE
parameter, ttEmp, passed as the class, staticTT_ttEmpRow:
|
The following client code defines a two row array (myTempTable) according to a defined schema (staticTT_ttEmpRow), then defines and creates two rows assigned with values. It
then initializes the array (as TABLE, ttEmp) with the two rows and passes it to the staticTT( ) interface method, which passes the TABLE to the Web service:
|
The following is a Doc/Lit SOAP message that this call to staticTT( ) might send:
|
staticTT( ) method must
send the object ID for the Employee AppObject in the SOAP
request header because staticTT( ) is a method on the
session-managed AppObject.As a point of comparison, the following is a RPC/Encoded SOAP message that
this call to staticTT( ) might send:
|
staticTT( ) method must
send the object ID for the Employee AppObject in the SOAP
request header because staticTT( ) is a method on the
session-managed AppObject.