Google Search

Google
 

Thursday, July 24, 2008

Video: Working with existing WSDLs in ASP.NET Web Services

Presenter:Mike Taulty

Here we take a look at how we can implement a service when provided with an existing WSDL document.

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 that its session 1 in a series of short sessions were invited and it just looking at how we can do things with the net framework minus m Tolkien I work in the fellow from platform group in Microsoft in the UK and this particular session s the network services and what we can do around having a existing XML schemas and existing with documents and using us to be insolent web services or in front of services the first time okay so here we are in visual studio 2003 and adding in this project if you had incessantly about service gets a hold and one and this web service if we go for it eventually has a single operation Nicholl gets employee it takes an identifier it reaches into the North database employs table selects first and last name and title and then does this as an employee class wicket and returns and employee clusters has

Minute 1

Excess everlasting title and also the flanker that it is a consul at the calls of them princely you dated on to the console switches is glad if you don t mind it is worse and it came along and said I d like you to implement a service that looks very much like my service and one here I am but they didn t suspect the full thing out fully essentially came as it will be already written client and we likely to write an implementation of the same service and here s what the service should look like and so you drop into visual studio and you create a new project and what will do is we will create another works of this application and will call this one imaginatively into account so perhaps what a person has given us he is the scheme thus the data they expect

Minute 2

Centre service and expect to get back all unlikely given where services of the data that they expect it back so what I ve done here is my maths is stolen and it must scheme the document is itself a which only describes this is the same visa scheme that my original of service will return essentially for its son as a return message from this method hears are still happy to scheme and dropped it into an existing year so perhaps something on London instead ago I want you to get the employee and he is the schema that is what it described thing that comes back a case as it is first returned me analyse passive integer and that s how you ll do you look up so armed with that knowledge I think I is allowed out of the given a well sorry that I knew where service and a superfluous and done with article of sums of method hears it on so well with gonadal redness was over whether

Minute 3

And Dan sometime returned either of them just yet when do I have to get hold of person and use over an integer as it has for its personality of the analysing is still totally other Westerners are actually do any work here as this there is still a safer and there were distillers photocopied across now redundancy have found this employee type responsible just on forget that in a minute and will forget that that there is that it goes within the same saying it to work out what the return type now the present of this scheme and so I can take their son Christina here and avenues yet his beetle off to try and make some classes run allegedly about that successful console and that s used existing taxi to make some classes from the response likes of the document with but they certainly make me a file called response

Minute 4

Car anything of act I project here I can add that as an existing item and into this project and file under an hour in here and now is not responsible to shortlisted a look at it notice of the classical get employees is one full game for a response case looks pretty good and is a classical employee so I can now go back to my throat Navy and that s changed is to be an employee at this point was just at whatis using not using any names register were fine and then that looks fine and so here worried that she got employee are to go back to making in the residence advance alert has employee equals null that s return that from here and that populate nothing here that you can set the first name on first name

Minute 5

Figure stresses and strains or strings even and bringing the names versus working with data here at Francophile to reject an error that Sun and actually called ideological personality and new World Service housebuilder day we managed to build something that Mr sensibly looks like and what we built the first time around so let s go and get the wisdom of consistency it are really built so forgotten start of an instance of this disorder can grab little document and browser double notice if you read this service description ears that it s slightly different from what we built in one rebuild the first service cigarettes the first service a lot of ifs and descriptions will unscrew

Minute 6

Services which left a notice in the first service description we have got time on elements inherence will get employee comes from the URIwe ve got an element on the request here that some called ID without the employee response element is again called get employee results which has this employee within a first class and title and so on and so forth now in new version of the service which we discussed the together idea that regard elements will get hold of person and get hold of those in response done we ve also got an entitlement from S1witches are described here to slightly wrongcertainly and so it are a few differences between what we ve got here and what we have in our original whistles we haven t quite made the exact same service and our client won t work against the service as it stands at the moment now that one of his nugget sessions about everything changes can develop

Minute 7

Names and for services you can watch that and with a little work here we could make this look exactly like the original work service however where I m going to really be able to do that if the person that wrote the original live service was prepared to give the Bristol document or a novel of information from Bristol document in some other manner and we really need all the information we can t just do it by being provided with visa scheme it s not quite enough that a lot of extra stuff that goes on here so a switch from thinking rescuers are thinking about whistle what if we wanted to be implemented service and the implementer of the first service gave as their entire whistle document officially fact visual studio fears over the understocked debugging then than one way to get the whistle document easily for Irish original services to go to this consul at that references it and sneak into the folder for the reference and steal the whistle document so here is the whistle document fry original service

Minute 8

Fully describes everything to we can copy that thing and one that is either an extra service so less intensive than an analyst at the new project and will call and three and in this particular service will do is remove the original as a father I get given Scots in a here and undergrad entries folder here such a switch to entry on the desk and run to create a new whistle fathers who entry that was not our distaste that whistle document was still a moment ago into their solicitor while Friarage will service his face and with Adam Faith what I should go to use is the whistle tool within server option on entering doctors still stitching an entry that was thought to produce a service that looks and behaves like that with

Minute 9

Document specified cases has given me in one co salmon who had a string of that code in her pantheism brings up a copy of gang anorak into visual studio and going to add into this project and the Web service leave it also was one of the moment will drop it in him to the code and it was replaced this code in its entirety with the Kodak on a clipboard guy which is the Kodak town whistle that it is created for me later with that in place I and livestock disgusting and abstract customers turned into a real class act and then I went to Inverness get employee method unless you have still currently at once that this was since isn t wishful to do anything else to a standstill and flotation from their copy that cross here

Minute 10

To I hear the code into a sweet opinion on system datawith a string of systems update and system but that a sequel client and also am employee doesn t have a construct like this long because this is just been created for a spy was taxi so what we need to do is just how he got first nine months of signs property straight across a row came second at NatWest at is less refined pleasure and we can compile and we can do now is that this will service here with built in using muscle server is if you are an original client encouraging client code it s gone against and one right now Phyllis has run that a measure of its own it s working to special the client hit against in one of those

Minute 11

Unless if we can force the client is against entry instead are just changing me the URL where you do now appointed to the M3 version of the service instead and if it is the book that started it finally gets the same results as before so not so surprising because you got it ago but the interesting thing really is that we managed his whistle server on a little document from end one in order to re enter them that service on M3 and we frantically tried to just do it without this being a tricky because a lot of extra stuff in the whistle prison To justify to give you a bunch of excess day notice the finish up a switch to a different project gain another these nuggets sessions we look at how we can take more control of the yam was still the guest generator for our services through using red service binding and Web services document method attributes as it happened to have this and different service looking around and acquire it against it while we got this then

Minute 12

It all works fine what s interesting about this is that the worst of the Officer s a quick look at this new so it s slightly more confident than the whistle document that we had before Ferraro existing service to have a look at this particular whistle document you ll see there is existential import arms some other was the documents and carry as this is interesting because if he is whistle server is against a backdrop project who had to stop and debugging it wanted to build another service looked like there s again we can go and steal the whistle document from the Web reference note is that a few of them this time but he is the main little document to we can steal this and if we go out versus go to my own affected directly or tampered with and their cycle this main whistle document and its pace that whistle into their every is whistle server honour

Minute 13

Will have a problem because receivers say he doesn t know about you end bank interface calm and can t find that piece of service description we look back at this that you see that bank interface ears are essentially being imported from this location here as an act unless I say to us outside the people interface because that is also imported from the second URL face renewed for bad in there as well to provide that to lottery whistle to sir with reference to those other two little documents via whistle exe tool can actually provide us with a service at that does what we want is to set the foster mothers which laws it is actually only conceded it has gone out and she generated the right bits in order for us to rebuild the version of

Minute 14

Service or build a local version version of that service on a local machine to we can follow those chains in Bristol but done little of it hardly have to have all the fragments of the whistle to the reference will in order for Bristol server to do its work just to summarise what people can do short session with looked at how little the worse service given and some pieces from somebody else and I will be starting from scratch we tried to survey the work that has been the active building classes from schema and that gets as a certain way along the line but without a lot of information from the original developer of the Web service or are perhaps whistle document if is currently differs to make the exact same service at the foot of the something but it does not have the nexus the man in order to tells what to do and to take on the whistle document and in the autumn and implementing a service that way and that looks a lot better for a sweet use

Minute 15

accident server option and that builders are as excellent services are amicable and we also looked out you d need if there are additional with all documents or additional schema that reference within the Bristol daily were detailed to get hold of those things in order for that was thought executes work and generate newscasters to need out and it s available in order to do where can you go to get more information about services well probably the best place to start would be of MSDN developer Santos that s just MSDN on Microsoft com web services all one word there s some great stuff of there in the section on the left and titled understanding Web services is really brilliant articles that you could be there to get a good picture of what sign on in this area and if the something is he specifically in this session only thinking hang on it and wants more information on that definitely did not an airline and Tolkien Microsoft com has a seven screen their drop a line and I ll drop your response other than that I look forward to

Minute 16

During seeing you next time

Click here to go to original video page

No comments: