As a unified distributed communication platform, WCF can help developers build standard SOAP XML-based Web Services so that traditional XML Web Service clients can consume it. Likewise, it is also quite convenient to use WCF-based client applications for consuming traditional XML Web Services.
In this recipe, we will show you how to consume a traditional ASMX Web Service from a WCF-based client application.
We will use a simple ASMX Web Service as an example here. The complete steps for consuming the sample service are as follows:
The sample ASMX Web Service contains a single operation that returns some string data. The complete definition of the Web ...