Invoke a method with a DATASET parameter
- Last Updated: December 6, 2022
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
To invoke a method that passes a DATASET parameter, the client application
typically must:
- Create rows using the interface object that represents the
TABLErow - Insert the rows in arrays that represent the constituent temp-tables in the ProDataSet
For example, the following snippet of code passes a ProDataSet parameter represents and operation in the Web service:
getCustOrders.p
|
|
When you add a Web Reference for the CustOrders Web service to Microsoft® Visual Studio, it creates the following
proxies in a References file for the getCustOrders operation:
|
|
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:
|
Note: Because .NET has a proprietary method of recognizing and
exposing ADO .NET DataSets in WSDL documents, its toolkit cannot translate the WSDL
definition of a ProDataSet directly into an ADO .NET DataSet. For an example of creating an
ADO .NET DataSet from a ProDataSet parameter, see Creating .NET DataSets from ProDataSet parameters.