The .NET Compact Framework does not support all of the code generated by the Web Services Description Language Tool (Wsdl.exe). However, applications using Web services can use the generated proxy when you add a Web reference to a Smart Device project in Microsoft Visual Studio 2005.
There are situations when you might need to use Wsdl.exe. One case is when you need to provide the order of particle members in your proxy to conform with the order required by a Web service. The Wsdl.exe tool has the /order option that generates explicit order identifiers on particle members.
This example shows which code to remove from the generated proxy so it can be used by the .NET Compact Framework. The code to remove is described in the order that it appears in the generated proxy.
To remove unsupported code from the generated proxy
- Generate the proxy with the Web Services Description Language Tool (Wsdl.exe). 
- Remove code that defines a delegate named the - RetBaseTypesOperationCompletedof type SendOrPostCallback.
- Remove code that defines and references the - RetBaseTypesCompletedevent, the- RetBaseTypesCompletedEventHandlerdelegate, and the- RetBaseTypesCompletedEventArgsclass.
- Remove code that defines and calls the - RetBaseTypesAsyncmethod.
- Remove code that defines and calls the - OnRetBaseTypesOperationCompletedmethod.
- Remove code that defines and calls the - CancelAsyncmethod.
- Remove the - Serializableattribute.
See Also
Concepts
Network Programming in the .NET Compact Framework
.NET Compact Framework How-To Topics