Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling the Web Service from the PocketPC -Documentation
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01300732
Message ID:
01301552
Views:
16
Kevin,

First, thanks for your assistance.

Yes, the web service returns an entity as per the 2.4 jump start.

Regardless after replace the jump start button code with what you just provided I get the following build result:

C:\MM .NET\ Jump Start\Order System PocketPC\CustomerOrdersForm.cs(32,27): error CS0246: The type or namespace name 'OrdersEntity' could not be found (are you missing a using directive or an assembly reference?)
C:\MM .NET\ Jump Start\Order System PocketPC\CustomerOrdersForm.cs(32,13): error CS0246: The type or namespace name 'mmBindingList' could not be found (are you missing a using directive or an assembly reference?)
C:\MM .NET\ Jump Start\Order System PocketPC\CustomerOrdersForm.cs(34,41): error CS0029: Cannot implicitly convert type 'mmBindingList' to 'object'

Not sure if appropriate but I did also add:
using OakLeaf.MM.Main.Collections;

As well as a reference to "Mere Mortals Framework 2005"

My attempts to resolve this issue only seemed to prove I was proceeding incorrectly.

Ian possibly added something to consider...
Should we return to using a dataset for PocketPC?

>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,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform