Contenido
duración: 21hrs.
about this workshop
elements of this syllabus are subject to change.
this three-day instructor-led workshop provides students with the knowledge and skills to develop distributed applications by using the microsoft( . Net framework and microsoft visual studio( 2005. The workshop focuses on building distributed applications by using web services, remoting, microsoft message queuing, and serviced components.
audience profile
this workshop is intended for corporate and independent software vendor application developers who have a desire to learn more about specific technology areas in distributed application development.
at workshop completion
after completing this workshop, students will be able to:
•build and use a web service.
•configure and customize a web service application.
•call web methods asynchronously.
•build remote client and server applications.
•create and serialize remoteable types.
•manage the lifetime of remote objects.
•call remote methods asynchronously.
•implement remote events.
•send and receive messages by using microsoft message queuing.
•create and use serviced components.
session 1: building and consuming a simple xml web service
this unit describes how you can create a simple web service and client application by using the . Net framework. It also explains how you can configure client proxies, and debug and deploy web services.
lessons
•technical context of web services
•components of web service technology
lab : lab 1: building and consuming a simple web services
•exercise 1. Creating a web service and client
•exercise 2. Working with the client proxy
•exercise 3. Deploying a web service and configuring a client
•exercise 4. Debugging and exception handling in web services
•exercise 5. Determining web service connectivity
after completing this module, students will be able to:
• explain the technical context for web services.
• understand key components of web service technology.
• create a web service and client.
• configure a web service client and proxy.
• deploy and use a web service.
• debug a web service.
• determine web service connectivity.
session 2: configuring and customizing a web service
this unit introduces a number of important configuration and customization options for web services. It describes how to control the way in which complex parameters to web methods are serialized. This unit also shows how to use configuration files to control the way in which a web service operates.
lessons
•xml serialization
•how to use complex data types in web services
•how to use attributes to control serialization
•how to use service configuration attributes
•configuration files
lab : configuring and customizing a web service
•exercise 1. Creating and using custom data types
•exercise 2. Customizing the web service
•exercise 3. Configuring the web service using the web. Config file
after completing this unit, students will be able to:
•explain xml serialization of user-defined classes.
•pass complex data types between a web service and a client.
•configure xml serialization.
•configure soap formatting options.
•configure the namespace and binding for a web service.
•configure a web service by using the web. Config file.
session 3: calling web methods asynchronously
this unit explains how to call a web method asynchronously. It describes how to improve the responsiveness of client applications by avoiding the need to wait for web methods to complete execution before continuing processing. This unit covers the different options available for calling web methods asynchronously and it describes how to create one-way methods.
lessons
•the need for asynchronous calls
•options for making asynchronous calls
•one-way methods
lab : calling web methods asynchronously
•exercise 1. Using a one-way method
•exercise 2. Calling a web method asynchronously
after completing this unit, students will be able to:
•explain why asynchronous calls are needed by web service clients.
•create and invoke one-way methods.
•call methods in a web service asynchronously.
session 4: building a remoting client and server
this unit describes key remoting concepts, and shows how to create a remoting server and client. This unit describes how to use remoting to call methods in remote objects, and how to pass data across remoting boundaries. This unit also shows how to configure and deploy remoting applications.
lessons
•technical context of remoting
•remoting servers and clients
•important components of remoting
lab : building a remoting client and server
•exercise 1. Implementing a simple remoting client and server
•exercise 2. Passing data by value
•exercise 3. Configuring remoting channels and activation modes programmatically
•exercise 4. Configuring remoting channels and activation modes with configuration files
•exercise 5. Deploying and debugging remotable classes
after completing this unit, students will be able to:
•describe the technical context of remoting.
•implement a simple remoting server and client.
•pass data by value across a remoting boundary.
•configure remoting channels.
•use different activation modes.
•configure a remoting service by using a configuration file.
•deploy and host remotable types.
•debug a remotable type.
session 5: creating and serializing remotable types
this unit describes how to transfer complex data values across remoting boundaries, and the issues involved in doing so. It compares and contrasts the marshal by value and marshal by reference mechanisms for accessing remote data. This unit also covers version compatibility issues between clients and servers using different versions of a class, and the special requirements for remoting generic classes.
lessons
•marshal by value
•marshal by reference
•version compatibility for remotable types
•generic classes
lab : creating and serializing remotable types
•exercise 1. Using serialization formatters
•exercise 2. Using marshal by reference
•exercise 3. Using version tolerant serialization
after completing this unit, students will be able to:
•describe the differences between marshal by value and marshal by reference.
•describe the issues surrounding versioning and remoting.
•use version tolerant serialization.
•configure a communication channel to use different serialization formatters.
•create and marshal remotable objects by reference.
session 6: performing remoting operations asynchronously
this unit describes how to call a method asynchronously in the remoting environment. It covers the different techniques you can use and it explains how to raise events in a remoting server and handle them in a client.
lessons
•asynchronous methods
•calling remote methods asynchronously
•one-way methods
•using events in remoting applications
lab : performing remoting operations asynchronously
•exercise 1: calling remote methods asynchronously
•exercise 2: raising and handling events in remoting
after completing this unit, students will be able to:
•call remoting methods asynchronously by using begininvoke.
•implement callbacks.
•create and call one-way methods.
•create and fire events in remote services.
•handle events in a client application.
session 7: managing the lifetime of remote objects
this unit describes the lifetime of remote objects and how you can control them. This unit introduces the concepts of remote object leases and sponsors. This unit shows how to initialize a remote object's lease to a specific period, and how to renew an object's lease when it expires by using a sponsor.
lessons
•life cycle of remote objects
•lifetime sponsors
•lease properties
•leases and exception handling
lab : managing the lifetime of remote objects
•exercise 1: initializing the lifetime of remote objects
•exercise 2: renewing the lifetime of remote objects
after completing this unit, students will be able to:
•initialize the lifetime of a remote object.
•renew the lifetime of a remote object.
•configure the renewal properties of a lease.
•handle exceptions caused by lease expiry.
session 8: sending and receiving messages by using message queuing
this unit describes how to use microsoft message queuing to build distributed applications. It covers the essential aspects of building client and server applications that use message queues, how to create queues, how to send and receive messages, and how to handle replies to messages. This unit also describes how to access message queues across the internet.
lessons
•understanding message queuing
•creating a message queue and sending a message
•receiving a message and posting a response
•using iis with message queuing
lab : sending and receiving messages by using message queuing
•exercise 1. Building a simple messaging client and server
•exercise 2. Using more complex data types and formatters
•exercise 3. Using response queues and time-outs
•exercise 4. Placing messages on a queue by using iis and http
after completing this unit, students will be able to:
•explain message queuing.
•create a message queue and send messages.
•receive a message and post a response.
•use internet information services with message queuing.
session 9: creating and consuming serviced components
this unit explains how to build and access serviced components in a . Net framework application. This unit describes the relationship between . Net framework serviced components and com+. It shows how to use the . Net framework to implement a serviced component that you can register as a com+ application and how you can write applications that use serviced components.
lessons
•com+ services
•implementing a serviced component
•registering a serviced component
•instantiating a serviced component
lab : creating and consuming serviced components
•exercise 1. Creating and using a serviced component
•exercise 2. Using enterprise services in a serviced component
after completing this unit, students will be able to:
•understand the role of com+ services.
•implement a serviced component.
•register a serviced component.
•instantiate a serviced component.