Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling the Web Service from the PocketPC -Documentation
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01300732
Message ID:
01301214
Vues:
14
Ted,

Assuming you have a web service that returns an entity list, you can do something like this:
private void btnGetOrders_Click(object sender, System.EventArgs e)
{
   // Turn the cursor into an hourglass
   Cursor.Current = Cursors.WaitCursor;

   // Instantiate the Web Service class
   CustomerOrdersWS.CustomerOrdersWS_CSharp wsCustOrders =
      new CustomerOrdersWS.CustomerOrdersWS_CSharp();

   // Call the Web Service
   mmBindingList<OrdersEntity> entityList = wsCustOrders.GetOrdersByCustomerID(this.txtCustomerID.Text);
   // Bind the result set to the DataGrid
   this.grdOrders.DataSource = entityList;
   // Restore the cursor to a pointer
   Cursor.Current = Cursors.Default;
}
Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform