In WPF, you bind to objects returned by web service method calls the same way you bind to any other objects. To demonstrate, we’ll walk through a simple application that consumes the MSDN/TechNet Publishing System (MTPS) Content Service, discussed here . Our application implements a very simple scenario that retrieves the list of languages supported by a given document. Create a Reference to the Web Service The first step is to create a reference to the MTPS web service. To create a web reference using Visual Studio: Open your project in Visual Studio . From the Project menu, click Add Web Reference . In the dialog box, set the URL to the following: http://services.msdn.microsoft.com/contentservices/contentservice.asmx?wsdl Press Go , then Add Reference , to create the web reference. Call the Web Service and Set the DataContext We are now ready to call the GetContent web service method and bind to the returned object. All we need to do is call the web service and set the DataContext property
Read More...