Se ha denunciado esta presentación.
Se está descargando tu SlideShare. ×

Web Service Presentation

Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Próximo SlideShare
Web service Introduction
Web service Introduction
Cargando en…3
×

Eche un vistazo a continuación

1 de 18 Anuncio

Web Service Presentation

Descargar para leer sin conexión

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

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

Anuncio
Anuncio

Más Contenido Relacionado

Anuncio

Similares a Web Service Presentation (20)

Más reciente (20)

Anuncio

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

×