Invoke a method with a DATASET-HANDLE parameter
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
To invoke a method that passes a DATASET-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
DATASET-HANDLEparameter in a SOAP request or response consists of an XML element containing two child elements:- An XML schema element representing the schema for the
DATASET-HANDLE - An XML representation of data, using a data element with child elements representing individual rows for each constituent temp-table
- An XML schema element representing the schema for the
- The client application must parse the XML Schema and data from the SOAP response message
to make the
DATASET-HANDLEaccessible as native data within the application.
For example, the following snippet of code is from a procedure that passes a dynamic ProDataSet parameter:
|
When you add a Web Reference for the Web service to Microsoft® Visual Studio, it creates the
following proxies in a References file for the getDynDS
operation:
Sample C#.NET proxy code for getDynDs
|
When you reference the Web service in your code, Microsoft Visual Studio offers these proxy objects as appropriate. You can then create code to access the ProDataSet parameter like the following:
|