// The proxy type contains code to read the *.config file
// to resolve the location of the web service.
HelloWebServiceProxy proxy = new HelloWebServiceProxy();
Console.WriteLine(proxy.HelloWorld());
}
■
Note
Previous editions of this text included an entire chapter devoted to the topic of .NET XML web services.
With the release of WCF, however, I have decided not to include this chapter in this edition. This chapter on .NET
XML web services (titled “Understanding XML Web Services”) can be obtained free of charge from the Apress
website (
http://www.apress.com
) by those who have purchased this text.
While it is still perfectly possible to build this “traditional” flavor of XML web service under
.NET 3.5, most new service projects will benefit from instead making use of the WCF templates. As
you will see, you have many HTTP-based bindings to choose from, which allow you to essentially
build a web service without selecting a specific “web service” project template.
Do'stlaringiz bilan baham: |