Summary


In this chapter you saw what Web services are, and you briefly looked at the protocols used with them. To locate and run Web services, you have to use some or all of the following:

  • Directory: Find a Web service by UDDI.

  • Description: WSDL describes the methods and arguments.

  • Calling: Platform-independent method calls are done with the SOAP protocol.

You have seen how easy it is to create Web services with Visual Studio 2005, where the WebService class is used to define some methods with the WebMethod attribute. Creating the client that consumes Web services is as easy as creating Web services — you add a Web reference to the client project and use the proxy. The heart of the client is the SoapHttpClientProtocol class that converts the method call to a SOAP message. The client proxy you created offers both asynchronous and synchronous methods. The client interface is not blocked when you use asynchronous methods until the Web service method completes. You have seen how to create custom classes that define the data passed when you want to transfer more than simple data. the next chapter shows how Web applications and Web services can be deployed.




Beginning Visual C# 2005
Beginning Visual C#supAND#174;/sup 2005
ISBN: B000N7ETVG
EAN: N/A
Year: 2005
Pages: 278

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net