What is WSDL? Importance of it in Webservices

Rahul Shetty
A free video tutorial from Rahul Shetty
Founder of RahulShettyAcademy.com|350k+ QA Udemy Students
4.5 instructor rating • 21 courses • 372,526 students

Learn more from the full course

WebServices/Rest API Testing with SoapUI +Real time Projects

"Most Popular #1 SoapUI Test automation Course - "36000+ students learning together with great collaboration"

15:12:30 of on-demand video • Updated June 2021

  • At the end of this Course you will get complete knowledge on Web services,API and their functionality
  • You will learn How to test Webservices and REST API using SoapUI
  • You will be able to develop robust Automation scripts for all the API tests using SoapUI features
  • You will learn new language called groovy to automate webservices with SoapUI inbuilt methods
  • You will be able to develop robust automation Framework forAPI's testcases
  • You will understand the importance and procedure of Mocking the webservices
  • You will learn basic sql concepts and procedure for database testing using SoapUI
  • Will get clear picture on Security Testing using SoapUI
  • You will understand how to generate neat reports for execution results
English [Auto] Welcome back. So what is Wisden? OK, so this is an exceptional document that describes a Web service. OK, let's again take one practical scenario and do that and then you will simply understand this definition. OK, so I don't want to just read the definition like that and continue. We need to understand practical. Right. Let me go back to this notepad again. OK, so you are working in a company and you are in the role of aviator's, so client told us that, hey, you need to use Hotels.com APIs to actually display Hurdle's in our website. You need to test that. That's what our client told you. But what is that Web service like? What operations that Hotels.com exposes? OK, so that you need to know. Right? So when I say want operations like here, if you want to display hotels, you are sending battis this information to your Web service. Web service is nothing but collection of operations. Said have a multiple operations inside it, one operation could be. Let me read it to here. OK, so one operation could be such Hortense. With destination. I'll start writing it here so that it would be pretty clear for you. I can take the notes here. Right. Again, political opponents, such hurdles. OK. Look at this, could be one operation. So basically when you send SoPE request to this operation. OK, so in that service only they will have multiple operations. So one functionality which you require is get me the leaders of a destination. So this operation involves that particular code in their official website and display to all the hotels. OK, there could be another operation which also gives us that search cars, rental cars, the destination. Let's say that hotels.com also provide that future. That could be another operation. So now when you have British Airways wants a rental car information, so they will actually hit this particular operation in that Web service. OK, so then when I say we will take the help of a service to display, that doesn't mean that we hit this service directly. First, we reach this end point and we need to also provide this operation. You want to invoke with the message what you are sending. OK, so Web service will not accept any sort of messages. It will receive it and it will redirect to one of its operation will get that. We have to provide an awareness opioid message in our social protocol itself. We have to provide for this operation. We are sending our message. OK, so in that way, when Web service reads your message, it will say that particular operation and redirected to that specific thing. And another thing could be a search destination packages. Look for two. With the provider defense. This could be an operation. So the Secret Service comes under multiple operations now, so when your clients, they use exact use their Web services and test all the Web services given by hotels.com. So that's your requirement. OK, or maybe you are a partner. Hotels.com it OK. You want to hotels.com. It is senior internet. We are looking as a senior Dustan unit and this company and this company manager reaches out to you and said that we were actually having some Web services with multiple operations. We are sharing this Web service with a lot of clients like British Airways, Etihad, Emirates, so many clients. So we need to make sure that we have we are sending right to Web services. So basically, you have to test and provide the results to your manager. So what do you ask your manager when you simply say you're going to start a Web service? Where will you start? OK, this is a real challenging question. When you sit in your role now, you have understood something like what is Web service, what is soap, what is rest? But when someone says you go and test our Web services, if they ask like that in a generic statement, what do you do? So you should ask some details to your client. Right. So basically, you have to ask, what is a contract of the Web service? OK, you have to ask give me the contract of the Web service so that I will go and ask, did you have to start like this? So what is the contract of the sort? That service? OK, for the sort of services the contract we will generally call as a visible file, which still stands for Web services, description, language, OK, that actually describes the Web services. So when you when clients share you the contract of that sort, which is nothing but visible from that wisdom, we will know what all operations that particular Web services is supporting and what are the social standards which it should receive. And all the information, the complete information about that particular Web service will be known. Invisible file. OK. Without this Dell file, you cannot go and test anything. OK, so even if you want to test in your soap, you eyeball, it will first ask, give me the physical fight. OK, so you have to import this Vestel file in your soap, you a tool to start testing. If you don't have this, then you cannot test because you never know what to describe. All those testing, what to test, what operations are available, what parameters does operation expects? Everything is provided in the context of service, which is nothing but the stuff. So this is a hard for soap services. OK, so right now we are focusing on soap services only interested. There is a different style which I will be talking later so far, not just focus on this. So far, this soap up services, the VA still stands as a hard. OK, now let me take you one example of how this deal looks like it's a complicated document. OK, but you need not worry, as I said. So your tool is there for us to break down all those complicated symbols. And it will provide neatly, Yuya, for us to show what our operations from that was Delfi and what sort of it is everything so clearly gives us. OK, if you just pass this contract to secure, it will take that headache of interpreting that complicated symbol and it will simply provide a neat operations in that tool. OK, so that's why we depend upon so. Now I take you one example of showing how this deal looks like. OK. Let me take of this example. When you search calculator, Web service, you have something like the online dot com. So this is a sample website of his hosted on this website. OK, so let's read and understand the following operations are supported. So that means there is a calculator, the Web service there, just like the Web service. What we are talking here. It's that Hotels.com Web service, so here operations are available at such hotels with the destination name, so it's a rental car. So destination packages, these are operations available. So in to service operations available or add, divide, multiply and subtract. So that means you need not worry about adding code in your test. If you send simply two pieces to this operation of calculator web service, this will connect to its calculator code and sum up two values and give back response of Daxam to you back. OK, so if you send to commentary from your website to this calculator service to our operation to Blistery, it calculates file is an output. OK, this operation, this service Web service will actually talk to its code calculator code and get the value file and it prints five. Back to your website. OK, so these are operations available just like what we have here. So Web services, as I said, have collection of operations. So these guys are clearly not that. But in real time, when your working people are developers may or may not provide this information, but they will give you the contract, which is nothing but wisdom. So far, this calculator, there is a contract. Here it is. Please review the salary description, which is nothing. What was done if you select this. Yeah, this is your contract. OK, just don't get panicked by looking at this. It's very simple if you just import this complete document in your soap, your tool, and then you will see how cool it give you a little speck, OK, which will be doing in the very next lecture and coming one or two lectures. Don't worry. OK, so I will actually minimize things to explain this Vestel file in high level. OK, there is no point for you to lend depth of each and every line, because that is specific to developers point of view, but still you need to understand something here. OK, so if you read this, I have minimized everything here. Building. OK, so Calculator's building is a Tom which will actually help you to see how many operations it supports, OK? When someone gives you the don't file and if you don't have superball with you and if they ask you to identify how many operations this service projects, you can simply come to a building and open this. OK, so this hotels.com guy, if you want to connect to the British Airways, he will simply give this contract to British Airways that he will not give any quarter infrastructure. He will just give this dump XML file contract and say, OK, go and utilize all my operations and get the details from my code without taking headache of integrating. So this complaint was the developers will take and then they will use the spectroscope operations to retrieve results and to publish their website. So that's how developers work. So all we need is a contract of service. OK, so if I open this, if you minimize there are four operations, get add, subtract, multiply indirect. OK, so open one operation. OK, so it's saying so want to operation? And if you open this, it will say add operation. Name is Adelaide, so it is expecting input and it's expecting output. So when you say opposition names and then go back to the pipes, he had pipes that which actually describes the parameters which an opposition is expecting. OK, when there is an operation like this. Like such destination packages, so you need to provide some parameters, right, to get the results, so what parameters you need to pass like a three day package phylis package, stimulus package. So based upon your input, it can talk it to their official core and give you the results that input what you need to send. How will you know if Britisher if Hotels.com guys simply provides these operations? How will you know? What inputs do you have to pass to these operations and get response? That information will be identified only. So if you see operation them out in this building, come back to type's. OK, minimize this. If you minimize, it will be easy to understand, if not so many things will make it a little complicated. OK, so here to help is our name equals Operation Name outright for Operation Name. And if you open this, it is expecting to in business in this area in December. So that means two values need to be passed for an operation. That's true, right. If you want to and you have to pass two values to three, then it will give you five. So that's what it is saying. So even in Hotels.com, you will get Vendig like this. OK, so when you see the operation name, go back and check out the tapes I attribute in that if you open, you will see what exactly you need to send. Far operation, but in real time, just don't get. Don't panic, you will not at all. Look at this. You will simply import this in. You are so beautiful and you are so polite. All will give that all the details. OK, so that's very easy. So you will not really bother about all this. We'll just import. And so we are told clearly says, hey, you need doing digits, please pass and you will simply pass that on. And so it also will be constructed automatically from this visit. OK, so this will also tell you that household message should be created. OK, depending on social media tools they can give, it will create a standard social message for you. And if you're simply pass the put, that's OK for knowledge. But I'm telling you how to deal with all this. All right. Yeah. So let's continue in our next lecture on discussing these things. Thank you.