tailieunhanh - Introducing Windows Azure- P34

Introducing Windows Azure- P34:The cloud platform is getting more and more attractive to the computing world. Today, service-oriented architecture (SOA) and aspect-oriented programming (AOP) techniques are widely used in enterprise solutions. A question an IT management team or a software development team may ask is, what is the next trend going to be? Cloud computing seems to be the right answer. | CHAPTER 5 AZURE .NET SERVICES ACCESS CONTROL create and open the client channel lAccountFederationClientChannel channel Please type message to ping service 0 string inputMessage while inputMessage try Receive response from Server 0 inputMessage catch Exception e Test Client Program exception caught 0 inputMessage 6. Add to the client application and input the binding information as Listing 5-6 shows. Listing 5-6. Configuration for Client Application xml version encoding utf-8 configuration services service name . endpoint contract . binding netTcpRelayBinding service services configuration To start the server application we are going to enter the Azure solution name and password which will be used to do the authentication by the .NET Access Control Service. When the .NET Access Control Service has finished authenticating the request the server is running to listen for the message posted to the endpoint. 138 CHAPTER 5 AZURE .NET SERVICES ACCESS CONTROL One thing that needs to be clear is that the custom service we host is running from the local machine but the access is controlled and established through the endpoints from remote Azure services. This can be verified by the atom feed automatically assigned to every service by Azure services from the Azure portal page. Go to the Azure portal at http and log on to the .NET Services Bus. Figure 5-3 shows how to access the feed and Figure 5-4 shows our service as expected. Figure 5-3. The Atom feed for our