Calling a procedure with an output static ProDataSet

The following example shows sample code for calling a procedure with a ProDataSet.

// The specified namespace is Acme
using Acme.StrongTypesNS;

// Calling a procedure with an output static ProDataSet.
Account appObj = new Account("http://host:portnumber/apsv", "", "", "");
OrderDSDataSet outDS = null;

// Call the procedure.
appObj.GetCustomersAndOrders(out outDS);

// Assign the ProDataSet to a DataGrid.
myForm.dataGrid1.DataSource = outDS;
myForm.dataGrid1.DataMember = "Customers";
myForm.dataGrid1.ReadOnly = true;
myForm.dataGrid1.CaptionText = "Number of Customers: " +
    outDS.Tables["ttCust"].Rows.Count;