This chapter covers the following Microsoft-specified objectives for the "Creating and Managing Microsoft Windows Services, Serviced Components, .NET Remoting Objects, and XML Web Services" section of the "Developing XML Web Services and Server Components with Microsoft Visual Basic .NET and the Microsoft .NET Framework" exam:
Create and Consume an XML Web service.
Control characteristics of Web methods by using attributes.
Instantiate and invoke an XML Web service.
One of the major advances of Visual Studio .NET over previous versions of Visual Studio is its support for XML Web services. As you'll learn in this chapter, XML Web services enable the use of remote objects over common Internet protocols. This objective tests your ability to use Visual Studio .NET to create a Web service and to use objects that are made available by a Web service created by another developer.
This chapter also covers the following Microsoft-specified objectives for the Deploying Windows Services, Serviced Components, .NET Remoting Objects, and XML Web Services section of the Developing XML Web Services and Server Components with Microsoft Visual Basic .NET and the Microsoft .NET Framework exam:
Publish an XML Web Service.
Enable static discovery.
Publish XML Web service definitions in the UDDI .
The exam also tests your familiarity with the publishing side of Web services. Publishing a Web service makes its objects and methods publicly available. By using Web services protocols such as WSDL and UDDI, you can make your Web service available to other developers for use in their own applications.
Understanding Web Services
Disco and UDDI
Invoking Your First Web Service
Creating Web Services
Creating a Web Service Project
Testing the Web Service Project
Customizing the WebMethod Attribute
Discovering Web Services
Disco and UDDI
Using the Web Services Discovery Tool ( disco.exe )
Instantiating and Invoking Web Services
Creating Proxy Classes with the Web Services Description Language Tool ( wsdl.exe )
Using Web References
Testing a Web Service
Apply Your Knowledge
S TUDY S TRATEGIES
Use ASP.NET to create a simple Web service. Then use the wsdl.exe tool to create a proxy class for that Web service, and instantiate the Web service within another ASP.NET application. Make sure that you understand how to make all of the pieces of the process work together.
Use the registry at http://www.uddi.org/ to explore some available Web services.
If you're reviewing references on Web services to study for the exam, make sure that they're specifically about Microsoft's approach to Web services. Although Web services are broadly interoperable between manufacturers, there are implementation differences.
Use a tool such as the .NET WebService Studio to inspect SOAP message and WSDL files to see what's happening as you interact with a Web service.