Defining DATASET-HANDLE (dynamic ProDataSet) parameters
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
DATASET-HANDLE parameters pass both the schema and data, because the dynamic
ProDataSet schema is not known at compile time. In the WSDL, OpenEdge Web services map an ABL
DATASET-HANDLE to an arbitrary complex type (<any>).
There is a single definition used for all ProDataSet parameters in all supported SOAP formats.
For all SOAP formats, client interfaces typically represent DATASET-HANDLE
parameters as follows:
- All
DATASET-HANDLEparameters within a Web service object are represented as one of two objects, one for ProDataSets without before-image data and one for ProDataSets with before-image data. - In both request messages (input) and response messages (output), the schema of the
DATASET-HANDLEmust accompany the data. - For every input
DATASET-HANDLE, you must include the schema of theDATASET-HANDLEin the form of an XML Schema followed by the data in the form of an XML document fragment. - For every output
DATASET-HANDLE, a non-ABL client must parse the XML Schema and data in the SOAP response message. - For an ABL client, the WSDL Analyzer recognizes the WSDL definition of a
DATASET-HANDLEparameter and maps it to aDATASET-HANDLEparameter for an ABL client.
The following WSDL sample shows this common ProDataSet parameter definition:
Common DATASET-HANDLE definition for all SOAP formats
|
The client application must create (for input) and parse (for output) the XML Schema along with the data for the parameter. How the client inserts the input schema and data in request messages and how it parses the output schema and data from response messages depends entirely on the client application.
This is the general format in OpenEdge Web services for representing a
DATASET-HANDLE in a SOAP message:
|