Google Search

Google
 

Thursday, July 24, 2008

Video: Enabling WSE2.0 for ASP.NET Web Services

Presenter:Mike Taulty

This session introduces WSE2.0 and shows how to switch on WSE2.0 support in ASP.NET Web Services

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

Hello and welcome to the net framework needed session won a series of short five to 10 minute sessions where we look at how you can get things done with the net framework technologies minds might Tolkien I work in the developer and platform group in Microsoft in the UK and in this particular session I want to look at the Web services enhancements version 2 and how you apply that to existing a speed of network services is if you haven t seen it these was a web service enhancements to A Z of technology you can download the free from MSDN is supported just as and where the net framework 1 1 and a satellite advanced capabilities to your Web service applications particularly around a addressing of soap messages as securing this messages in terms of identifying who they came from digitally signing and it s regretting them out at my policy to the soap messages to decide that you should except the one I ll got some other to the little bits and pieces in their own sending attachments backwards and forwards files

Minute 1

The Web services and some of the pieces around them and routing of accept that service requests as well now if you want to get a hold of was the 2 0 the current versatile and recording this and it is very newly released service Pack 3 and if you go to your favourite search engine and typing was heated by no service battery and a quick search you going to find that thing on MSDN you can go over there and click and within depending on the speed of your link within a quite a few seconds orally submitted unless the minute two you can get this thing downloaded and installed on your machine in fact very easy to find very easy to install and other big heavyweight piece of technology in terms of how begins on the disc and installation time and so on so much that this thing installed what you get well you get naturally some live busy programme against us documentation that describes them and if you go into visual studio as I ve got over here where I ve got a Web service project and an application

Minute 2

It against as a client which is a very quickly about service project I been using in a few of these sessions essentially all that does is has a single word method and that returns an employee from the employees table in the northern database and then it just is out through guide to radio net code backs on data from their populating a class with it and returning that class is a lovingly very clever in that particular observers and if we look at the moment at the way this is working we can run the client against the World Service and I have declined configured such that time the soap traced to is picking up the messages are being sent back to forwards out look at one of these messages then you go to see that I ve got my own proprietary header in there at the moment and we are fairly simple sort of body in the soap envelope to visit a standard SQL net 1 1 Web services and if we go back to project and we do stock debugging every second or

Minute 3

Solution and on this particular project we can specify that we want to start using the whizzy together flooding into visual studio with a new dialogue and when it is set at stuff of the whizzy and honest dialogue with sections for security at rooting a soap messaging adding our own filters into the was he a pipeline of filters that get run we can specify things to do with policy hands with security and tracing very within a comeback to mostly through a different times in different of these sessions are tormented it is the simple think of switching was yon as switching on soap extensions as well for an SQLNet project and is clicking okay to outdo that what happens is allowed a reference in a project to Microsoft or services to an ultimate consideration file I get a new section added for the Microsoft Web services to and that was properly so my dad was a bottle as far include a

Minute 4

A moment as we have really done anything in their out of an empty diagnostic such a full description of this consideration prize is very well documented in was the documentation is that absolutely laid out in there as to what goes where a gaze that happened only on the server side their descending on a client application that it is the cultural client in the unable was it there and if I rebuilt the applications and then run interesting thing is that something strange and something is done so forgot that are so close from it and have a look at this latest message then he noticed that the request message looks pretty much like it did before I have actually exhausted that they like it did before but notice that the response message has changed quite dramatically so in this start response message now I ve got my regular soap body than I had before in this header section firstly than a whole ton of new name spaces brought in here which are around the yarn of US specifications about

Minute 5

The specifications have been addressing in Security Council and so forth and a number of different soap headers have been added to concede for instance that I ve got a new address in headers on his return message I ve got an action I ve got the message ID are sometimes correlation identifier and addresses to where it s going to I ve got some basic security information here in Ireland is when the message was are created and when it will expire on as just by virtually switching on was he on my XP net Web service to outcome the Persephone from the client is in getting did given that there are switching on their own client is rather the thing is that at the client is still using a proxy to make its call which is not always the unable proxy sauna clients at what we need to do is having switched on whizzy we can go to our web reference that were using to invoke the service we can data unlikely updated regard to look at the reference itself your spot the

Minute 6

Reject who proxies in hear my sister in law has called everyone because my service is called and won a stuff in that it won at the time but I did it and is now seeming like a very bad name to anything but that s what it is about our works as he ever got that extra protocol that everyone was either this is the proxy we would need to use in order to get the witty functionality so if we go back to the code for this client and is that they take there is no relationship between a with the proxy and anonymously proxy the knockdown derived from each other anything like that but if we change distinctly was the proxy rather than a regular proxy and rebuild as my running dad again to get a problem and literacy what s happening here is that DN is traced it is now getting in the way of what the try to do something to switch to a different place to look this point are already do is break here run up at different rates tools of his

Minute 7

Which that URL back to what it should be just by omitting it and try and the switch to a different coastal zones run at the different racial here so it is runrule will set a trace and I just need to change the configuration of my applications are that it will get its message is traced to the school to do that very quickly will go on load of a config file that does that for us and with those config settings at Scotland copied his config settings out and drop them into the config settings for application here if and if the client by the way this one implausible into service as well so that config are rebuilt if we now rerun we should find that service goes back to working in the client can call this and that and it happens there and if it elegantly traced to output at this point will see that the client has sent a message to the service and the client now is also picking up the

Minute 8

That was the headers cease to the kind is now adding them a message identifier in action reply to address and so on and those security headers that we saw the service adding into its messages a day if we look at the message that comes back to the client then that as it was just as we write a few seconds into the service was already sending stuff with was he had as am the client is now selling it was he had already enabled any functionality we just change the proxy of using at the interesting thing about that proxy can go back to the client here is that time it contains some more information than just your average proxy that you are using before so this new was the proxy here in this code we can see that we can still say things like the URL and so on the nuts and exactly the same as it was understand the proxy but this proxy has a whole bunch of new information on it that lives in this request and response at context object and effect it is

Minute 9

Gain access to the addressing information the attachment information the security information and so on and so falls that really enables the whizzy functionality is driven through the soap context object which allows us to populate headers on the client side and undersurface replies back to as we can also pull those back and in its response soap context and similarly on the service side we can get access to functionality features Robert service at the here view the code then I did bringing ayou should bring that in the programme against whizzy web services to and in service code we can also get hold or so complex by just going to the request soap context at current anathema to give us a conflict which again will allow us to get into the addressing information the attachment information so and so forth to look at a number of those things in different sessions we do was it to and in

Minute 10

Of the series at the right dishonour to make sure that you could see where this is coming from and how we programme against it and also will be exploring a little bit more around this dialogue and what we could do with all the different sections on here as well so what have we seen in the short time that we spent here we ve seen that Web services enhancements two was he to it adds the advance web server support out how looked to the specifically here will look at that in other sessions but around addressing soap messages during a fine policy to them and so on this is a free download from MSDN at the support is in line net framework 1 1 of your comfortable and building a stuff into applications in and going into production with those applications just the same way as net framework 1 1 will follow up the set of a number of other sure that it sessions looking at different aspects of applying the witty technologies to a speed network services and other Web services in general

Minute 11

About services well probably the best place to start would be either MSDN developer centres that s just earnestly in the Microsoft com web services all one word there s some great stuff up there in the section on the left and cycled understanding Web services are some really brilliant articles you read there to get a good picture of to anonymous area and if the something is he specifically in this session only thinking Angolan and a lot more information on that then feel free to drop me a mail and am told it Microsoft icons is as onscreen there got a line and I ll drop your response other than that I look forward to hearing seeing you next time and thanks very much Lisney

Click here to go to original video page

No comments: