Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Web Service Presentation

33,529 views

Published on

1. Introduction to Web Services
2. Web Service Architecture
3. What are Web Services?
4. Why are Web Services?
5. The base of WS
6. What is SOAP?
7. What is WSDL?
8. How to test a web service?
9. Examples

Published in: Technology
  • ★★ How Long Does She Want You to Last? ★★ A recent study proved that the average man lasts just 2-5 minutes in bed (during intercourse). The study also showed that many women need at least 7-10 minutes of intercourse to reach "The Big O" - and, worse still... 30% of women never get there during intercourse. Clearly, most men are NOT fulfilling there women's needs in bed. Now, as I've said many times - how long you can last is no guarantee of being a GREAT LOVER. But, not being able to last 20, 30 minutes or more, is definitely a sign that you're not going to "set your woman's world on fire" between the sheets. Question is: "What can you do to last longer?" Well, one of the best recommendations I can give you today is to read THIS report. In it, you'll discover a detailed guide to an Ancient Taoist Thrusting Technique that can help any man to last much longer in bed. I can vouch 100% for the technique because my husband has been using it for years :) Here's the link to the report ◆◆◆ http://ishbv.com/rockhardx/pdf
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Nice article.. However if the requirement is just to test webservice and you do not want to use fancy SoapUI functionalities, try Postman. There are few other SoapUI alternative application as well...I came across this article on 5 SoapUI alternatives - http://techonestop.com/soapui-alternative-for-webservice-testing
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • good job
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Web Service Presentation

  1. 1. Web Services Introduction and Testing Prepared by Marine Yegoryan 2008 12/04/09 / © 2007 Netsoft USA / Proprietary and Confidential / www.netsoft-usa.com
  2. 2. Introduction to Web Services <ul><li>Today, companies rely on thousands of different software applications each with their own role to play in running a business. These different software applications run on a wide range of different platforms and operating systems, and they are implemented in different programming languages. As a result, it is very difficult for different applications to communicate with one another and share their resources in a coordinated way. </li></ul>12/04/09 / © 2007 Netsoft USA / Proprietary and Confidential / www.netsoft-usa.com
  3. 3. Web Service Architecture 12/04/09 / © 2007 Netsoft USA / Proprietary and Confidential / www.netsoft-usa.com
  4. 4. What are Web Services? <ul><li>Web services are application components </li></ul><ul><li>Web services communicate using open protocols </li></ul><ul><li>Web services are self-contained and self-describing </li></ul><ul><li>Web services can be used by other applications </li></ul><ul><li>XML is the basis for Web services </li></ul>12/04/09 / © 2007 Netsoft USA / Proprietary and Confidential / www.netsoft-usa.com
  5. 5. Why Web Services? <ul><li>Interoperability has highest priority. </li></ul><ul><li>When all major platforms could access the Web using Web browsers, different platforms could interact. For these platforms to work together, Web applications were developed. </li></ul><ul><li>Web applications are simple applications run on the web. These are built around the Web browser standards and can mostly be used by any browser on any platform. </li></ul><ul><li>Web services take Web applications to the next level. </li></ul><ul><li>Using Web services your application can publish its function or message to the rest of the world. </li></ul><ul><li>Web services uses XML to code and decode your data and SOAP to transport it using open protocols. </li></ul><ul><li>Web services have two types of uses. </li></ul><ul><li>Reusable application components. Ideally, there will only be one type of each application component, and anyone can use it in their application. </li></ul><ul><li>Connect existing software </li></ul><ul><li>Web services help solve the interoperability problem by giving different applications a way to link their data. </li></ul><ul><li>Using Web services you can exchange data between different applications and different platforms. </li></ul>12/04/09 / © 2007 Netsoft USA / Proprietary and Confidential / www.netsoft-usa.com
  6. 6. The base of WS <ul><ul><li>The basic Web services platform is XML + HTTP. </li></ul></ul><ul><ul><li>The HTTP protocol is the most used Internet protocol. </li></ul></ul><ul><ul><li>XML provides a language which can be used between different platforms and programming languages and still express complex messages and functions. </li></ul></ul><ul><li>Web services platform elements </li></ul><ul><li>SOAP (Simple Object Access Protocol) </li></ul><ul><li>WSDL (Web Services Description Language) </li></ul>12/04/09 / © 2007 Netsoft USA / Proprietary and Confidential / www.netsoft-usa.com
  7. 7. What is SOAP? <ul><li>The basic Web services platform is XML plus HTTP. </li></ul><ul><li>SOAP stands for Simple Object Access Protocol </li></ul><ul><li>SOAP is a communication protocol </li></ul><ul><li>SOAP is for communication between applications </li></ul><ul><li>SOAP is a format for sending messages </li></ul><ul><li>SOAP is designed to communicate via Internet </li></ul><ul><li>SOAP is platform independent </li></ul><ul><li>SOAP is language independent </li></ul><ul><li>SOAP is based on XML </li></ul><ul><li>SOAP is simple and extensible </li></ul><ul><li>SOAP allows you to get around firewalls </li></ul><ul><li>SOAP will be developed as a W3C standard </li></ul>12/04/09 / © 2007 Netsoft USA / Proprietary and Confidential / www.netsoft-usa.com
  8. 8. What is WSDL? <ul><li>WSDL is an XML-based language for describing Web services and </li></ul><ul><li>how to access them. </li></ul><ul><li>WSDL stands for Web Services Description Language </li></ul><ul><li>WSDL is written in XML </li></ul><ul><li>WSDL is an XML document </li></ul><ul><li>WSDL is used to describe Web services </li></ul><ul><li>WSDL is also used to locate Web services </li></ul><ul><li>WSDL is not yet a W3C standard </li></ul>12/04/09 / © 2007 Netsoft USA / Proprietary and Confidential / www.netsoft-usa.com
  9. 9. How to test a web service? <ul><li>As a web service is something that has no user interface, we can’t interact with it without a special tool. That tool should allow composing XML requests via its own user interface. Commonly such user interfaces are text editors where you write your XML requests and controls for posting requests to the server. </li></ul>12/04/09 / © 2007 Netsoft USA / Proprietary and Confidential / www.netsoft-usa.com
  10. 10. How to test a web service? <ul><li>Project structure. As in every well-established testing activity, I’ve started with test specification. The main part of a test specification is test cases divided into test areas. Visual Studio allows structuring your test project into test suites (the same as test areas in my test specification) that contain test cases, which can contain test steps, you can add, modify, delete and change order of every item in the structure. </li></ul><ul><li>Test cases. Visual Sdudio provides enough convenient tools to manage and run your test cases, and view result in test requests. </li></ul><ul><li>Load Testing . You can perform Load Testing. </li></ul>12/04/09 / © 2007 Netsoft USA / Proprietary and Confidential / www.netsoft-usa.com
  11. 11. How to test a web service? <ul><li>Automation. But what if your web service contains too many methods with too many input and output parameters? It may take several days for each complete test of your web service if your tool does not provide functionality to automate your testing. You can automate validation of your web service’s response against you input. You can automate the output of validation results into a file (which could be just a text file of HTML depending on your choice). </li></ul>12/04/09 / © 2007 Netsoft USA / Proprietary and Confidential / www.netsoft-usa.com
  12. 12. Example: ESRB Rating System Search Widget. Project Description <ul><li>ESRB requires functionality to query their database to generate search results for a third party web widget. </li></ul><ul><li>Netsoft shall be responsible for the developing a web service to generate result sets in response to queries from the Clear Spring widget. The widget shall make requests for rated games by specifying a keyword. The work performed by Netsoft USA shall encompass the following items: </li></ul><ul><ul><li>Define the interface for the calls to be made by the widget </li></ul></ul><ul><ul><li>Define the result set format (XML) to be provided in response to widget calls </li></ul></ul><ul><ul><li>Provide a mechanism by which the number of results returned can be attenuated (limit the number of rows) </li></ul></ul>12/04/09 / © 2007 Netsoft USA / Proprietary and Confidential / www.netsoft-usa.com
  13. 13. Scope <ul><li>URL (subject to change) http://esrb.org/SearchWidget/services/Search?wsdl (no https requested) </li></ul><ul><li>Parameters </li></ul><ul><ul><li>searchKeyword </li></ul></ul><ul><ul><ul><li>Text to search </li></ul></ul></ul><ul><ul><li>maxResultCount </li></ul></ul><ul><ul><ul><li>Maximum number of records to return (e.g. 50 records) </li></ul></ul></ul><ul><ul><li>user (subject to change) </li></ul></ul><ul><ul><ul><li>“ ESRB_test” </li></ul></ul></ul><ul><ul><li>pass (subject to change) </li></ul></ul><ul><ul><ul><li>“ ESRB_test” </li></ul></ul></ul>12/04/09 / © 2007 Netsoft USA / Proprietary and Confidential / www.netsoft-usa.com
  14. 14. Scope <ul><li>Return fields </li></ul><ul><ul><li>Certificate </li></ul></ul><ul><ul><ul><li>Game certificate number (5 digits) </li></ul></ul></ul><ul><ul><li>Title </li></ul></ul><ul><ul><ul><li>Game title (like ‘%[search text]%’ search condition against the game title and sorted by Rating Release Date) </li></ul></ul></ul><ul><ul><li>Rating </li></ul></ul><ul><ul><ul><li>Game rating (short text format), e.g. “E,” “E10+,” “T,” etc. </li></ul></ul></ul><ul><ul><li>Platforms </li></ul></ul><ul><ul><ul><li>Comma delimited list of platforms, e.g. “Xbox, Xbox 360, Playstation 3” </li></ul></ul></ul><ul><ul><li>Descriptors </li></ul></ul><ul><ul><ul><li>Comma delimited list of content descriptors, e.g. “Blood and Gore, Strong Language, Violence” </li></ul></ul></ul>12/04/09 / © 2007 Netsoft USA / Proprietary and Confidential / www.netsoft-usa.com
  15. 15. Create webtest - ESRB_WS.webtest 12/04/09 / © 2007 Netsoft USA / Proprietary and Confidential / www.netsoft-usa.com
  16. 16. Test Cases 12/04/09 / © 2007 Netsoft USA / Proprietary and Confidential / www.netsoft-usa.com
  17. 17. Result after run 12/04/09 / © 2007 Netsoft USA / Proprietary and Confidential / www.netsoft-usa.com
  18. 18. Altova XML, Data Management, and Web service tools 12/04/09 / © 2007 Netsoft USA / Proprietary and Confidential / www.netsoft-usa.com The Altova MissionKit is an integrated suite of XML, database tools designed to meet the diverse development and data management needs of today’s software architects and XML developers. XMLSpy® 2009   is the industry's best selling XML development environment. It offers the top XML editor, schema designer, code generator, file converters, debuggers, profilers, support for XSLT, XQuery, Office 2007/OOXML, XBRL, WSDL, SOAP, Visual Studio, Eclipse, & more. Link of a Flash demo of the SOAP client and SOAP debugger. http://www.altova.com/videos.asp?type=1&video=soap

×