Presenter:Mike Taulty
A great deal of power and flexibility comes from the use of bindings in the WCF to specify communication details. Here we explore a little of the standard bindings and how we can configure them.
The following text is a software generated transcript of the video. Click on a minute link to jump to a location within the video
Minute 0
Oh and a little of it is one of a series of short sessions with them 10 minutes or so looking at how we can do things with visual studio net framework minus might Tolkien I work in the developer and platform group in Microsoft and UK and this session is one of a series around the Windows communication foundation this is a technology for building distributed applications and found that is in effect set of technologies coming the Windows system in this particular session I want is a very brief look the power and flexibility offered to us by what the Windows Munich Asian foundation called findings quickly got it at a picture about what bindings really at Indonesia if we got some piece of code talking to some of the visitors we will talk knowledge or proxy banners imagine that were talking to a service of over here and work with his efforts in place between those two things are any
Minute 1
Amber Orrell s channels so here we have Channel 1 we have channelled to am perhaps we have Channel 3 in the idea of these channels as they sat together so the proxy will send a message down through Channel 1 Senate and to channel 2 and then to Channel 3 kind of impact across some kind of transport Channel 3 again and will reappear on the server side on overflow through Channel 3 to channel to that of their back into Channel 1 and back into the service so perhaps we just got done some communication going on across these channels here now these channels will be adding things to the message as the message flows through several centres are bottom of the stand here you might have some direct handful of channels
Minute 2
TCP or HTTP or everyone am perhaps this channel here might be adding some security capabilities to the message before it gets transmitted across through this channel and after it comes back out from the channel through the and then here we might have for instance reliable capabilities being added by this channel and the idea is that this is just out up to process the message as it flows from here across here and back up here to let flying over some of these channels are time being is essentially a collection of these things brought together to meet a particular purpose so binding digital boxer and these three are disallowed to the bank are still in with a different colour is made in the grey boxes are binding on the binding years is a collection of channels brought together with properties already set on those channels to perform a basic set of tasks
Minute 3
New message to friends as one finding might say that you want reliable security CD message and that will be abiding United one security seat and messaging could be another binding in my 40s eg messaging that could be another ban and so on a sofa also ironing is just a freak and collection of these channels brought together with appropriate properties already set on them so that they just worked nicely out of the box now here we are in the unity dazzled by and working in the September preview of the effects with a very simple client and server is a good console applications the service essentially offers a service contract here and it has a single operation article get kinds at what time is it that the service and we build an implementation of article timeservers which has had a great time review service host to host that within application
Minute 4
On the client side we ve gone and added a web reference to that particular service Outlook client application which graze on instance of the generated proxy for us caustic time and write it out to the consul is a very simple piece of code the service right now what we ve done is configured it through the consideration file to use a particular binding and running making their single endpoint available from the service it could offer multiple employers will come back and talk about that in future sessions in this case is offering one long way to communicate with it it takes a particular address this is 80 he and if it s binding and this is the basic HTTP line similarly over on the client side we have a configuration file which picks a communication and Brian with the exact same address and the exact same binding basic
Minute 5
Keep either and if we run with this then actually the client and service will can you build at Reg p other a number of other findings of the used recount bindings that has the capabilities and if we drop into the win affects SDK docks per second we can see that within this predefined binding section of the documentation and a list of the different bindings are available to us basically a deeply religious scene Web services HTTP in two directions working over plain old TCP mend pipes MSN to add another and are simply binding for no time to interact with the outside world some of these pre canned bindings and you can seen in the doctorate lists what I capabilities to have got what we can do with security economic concessions and transactions carried on to do
Minute 6
Actions so and so flocks are always different things to play with and the real beauty of it is that if I m to run their services as right now it has run the service and require a fine doctor service and if we could trace out the message is that we have sent across their way to lose a very basic so messages following a racially deeply resented an envelope with a header in the body and can rush nothing at send their every change the binding on this let s say I wanted something slightly more fancy than the basic duty and landing all I needed it back at my service is changed his mind in the from basic is deeply binding DWS HTTP client that allows her to switch on a whole number of services
Minute 7
Tickles it on top of a basic binding which affects an also little to forgive in service side as well that such that the age you be binding unusually quiet in services or to select compatible binding order to speak to each other and if we do run at this point then we would find that the service and I still talk to each other and if we do at straight messages again noticed that betrays messages that are going across by default here are vastly different messages to have a number of extra things in here that are going on that were going on a minute ago just by switching the binding and primarily this is about security to evade much bigger messages by switching on Security and co windows was changed in
Minute 8
And similarly if he wanted to switched or altogether we could reach the binding to a net easy in binding and change the address to reflect that do the same thing on the server side Andover to run the bovine service of artistry to recover strategically as opposed roast deeply and we did to enable that change the binding is very powerful thing really have changed very little we do nothing to code we just change a simple deployment is that insane don t want to use this set of configured channels to speak to each other are wanting some other set of configured chance to speak to each other now at this point you re probably thinking that this looks grey we have a small number of these preconfigured bindings
Minute 9
Andy Solomon is switched on the WSA need binding we submit that all other security it wouldn t necessarily ask for and does it mean every time his WSA to keep he always get all that security do or can you still configure things and make it be what you want in a slightly tailored way and of course you can easily find just on an object in the object model reconfiguration to tweak the standard settings on each of these preconfigured bindings ever doesn t do what you want we can still got build custom bindings were chanting only nine times out of 10 tweaking one of the preconfigured bindings can work for you so let go back to that aged the example that switch back to a seeking a letter to the WSA could be binding as did the same thing on service
Minute 10
And that is a using a Manila WSA the banning of the ships in the Bach s a start tweaking with this we can do that unless the hour that we can add here is a binding consideration I specify this is using my consideration and we can now go and use that name to configure this particular binding for or this particular service than 100 lives as one of the binding section of this file we can configure land of US binding in specifies and configurations for a cellular consideration name and only say that we have a choice of things we lose lie or timeouts are aware proxy is how we want our message encoded man Weatherly is to stand aware proxy was defining i e and so on and so forth without a go ahead and considers that
Minute 11
Addicts around this binding France s security road here after switching Arthur Thornton urges we can also set down transformer and use SSL or if I wasn t using message mode so such as security officer at configured will be repeated is make sure that the client s picture bindings I was inclined to use security in the services and another talk to each other there s two ways of getting the binding information to the client being his ways was to copy here is a little happy I am visit the client configuration file is added to line the continuation of the year and will tell the client that when it s speaking to the sanguine in its use that consideration are those which go to go rebels to get us conflict files on the right lives run a bus service and fined again
Minute 12
Dell if we go back and look at that trace of messages with say that even though we re using that unless a sticky declining riches including things like the US address in headers inside that so when I m only using the security because we turned it off to the power there is that we can make use of the standard bindings like WSA stick in your neck physically but then we can go configure them on a per use basis didn t add what we want to do which is where it means that only 99 times out of 111 and have the right of binding it all just have to configure once we ve already got their just finish up with its own emperor at that time we did copied this binding information from the service of my life if you don t own the service and client that s not the work so we have a way of doing that they doesn t necessarily have to copied its reserves decline over the theories just to complete the
Minute 13
Legally existing Web reference with Ga and delete the config file on the client and then understood a run of my service so it is run the service so it is their serving up its whistle document and allow the web reference to select a web reference to its local horrors 1990 time service and will add this as proxy code because that s the findings are used around within my code is argued client working and if they have a look at a consideration file here you ll notice that we got regenerating utility has been surmised at this moment is using a custom binding in the future this will be WSA be binding the right settings are just feature of the proxy generation till right now where did I disintegrated all the properties
Minute 14
Necessary to be compatible with the service I got listening on the other side so his two services will still speak to each other and are regarded nothing from service to clients and offence which is what you expect in the real world just the summer I fear it unequivocal bindings in this session and we ve seen that what they re for is to configure a number of channels and on transports and higher level protocol cigarette security reliability transactions shall do our services actually communicate on a standard bindings in the box I had very good for most scenarios you ll need today and are documented in the docks you have a read of those things I ve seen that we can tweak settings of us are not just free day to catch Yalta the way they behave which went all powerful than if they were just recount causing and if you want to you can build custom bindings are reluctant than in this session presenting the
Minute 15
About is considering a number of different channels to link up together in the properties you want to settle the latter option is well it is an abiding study what you won a game where would you go if you want to get more information on Windows communication foundation will address both the starters of the MSDN Microsoft com winner threat and if you want to find more information about the protocols that are service open standard protocols of the communication foundation is capable of using a good basic of that will be MSDN Microsoft com Web services and I particularly have a slightly understanding is a great document that specifies how all these things fit together to make a distribution platforms are posted just a random set of specifications and finally he want to follow with anything he saw a little fashion feel free to drop me an e mail on my address is there on the screen it as an assault on Microsoft com the now preferable to listening up to 20
Click here to go to original video page
Thursday, July 24, 2008
Video: Windows Communication Foundation: Bindings
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment