Try OpenEdge Now
skip to main content
Web Services
Developing a .NET Client to Consume OpenEdge SOAP Web Services : Developing the VB.NET client application : Extra processing for RPC/Encoded TABLE-HANDLE parameters
 

Extra processing for RPC/Encoded TABLE-HANDLE parameters

For RPC/Encoded Web services, a TABLE-HANDLE parameter is a System.Array containing the <DataSet> System.Xml.XmlElement. Process the array as follows for input and output:
*Input — Creates the System.Array with the XmlElement containing schema and data.
*Output — Extracts the last element of the System.Array, which is the XmlElement containing schema and data.
The following example shows the outlines of both procedures:
'This code goes after the code that creates XML document representing dynTTEl
'and before calling the method taking the TABLE-HANDLE parameter
. . .
‘Create a System.Array containing dynTTEl
dynTTArray = System.Array.CreateInstance(dynTTEl.GetType, 1)
dynTTArray(0) = dynTTEl

‘Run DynTT.p
wsObj.DynTT(dynTTArray)

' Process the output TABLE-HANDLE from DynTT.p
dynTTEl = dynTTArray(dynTTArray.Length - 1)
'Continue with the rest of the code for processing the output
. . .