8.5. Programming Against Interfaces
The previous section showed you how to define and implement interfaces. This section completes the picture by showing you how to code clients against those interfaces.
8.5.1. Generating Proxies from Interfaces
On the client side, a Web service proxy exposes the set of methods that reflects the binding's operations. As far as the client is concerned, this set of methods is considered the Web service's interface.
When you add a Web reference to an interface-only WSDL document, Visual Studio .NET recognizes an interface-only WSDL and generates the proxy class for you (beta versions didn't do this). Since the WSDL document doesn't contain a <service> element, the generated proxy class will not have a Web service ...
Get Real World XML Web Services: For VB and VB .NET Developers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.