官术网_书友最值得收藏!

Introduction

Web service stubs (and mocks—see Chapter 3, Developing and Deploying Dynamic REST and SOAP Mocks) are often developed in the early stages of a project, to quickly provide limited functionality to the client application while the full web services are implemented. This chapter shows how SoapUI can help you quickly test and develop simple Java REST and SOAP web service stubs and generate tests by recording interactions with existing web services. The web service stub implementations that you'll develop will only involve a few lines of Java code and can be run as Java executables. Apart from providing a quick warm up on basic SoapUI testing, the service interfaces and implementation examples will be reused as the basis for more advanced topics later in this book.

What you'll learn

You will learn the following topics:

  • How SoapUI can help you test, update, refactor, and develop a simple stub SOAP web service using its WSDL
  • How SoapUI can help you test and develop a simple stub REST web service
  • How SoapUI's discovery features can help you generate tests
  • To use Apache CXF to generate, implement and run basic JAX-RS and JAX-WS web service stubs

What you'll need

You will need the following software:

  • A Java JDK: To compile and run the code samples (version 1.6 or above)
  • Apache CXF: Apache CXF is used to build, and sometimes run, all the REST and SOAP web services in this chapter
  • An IDE (optional): Using an IDE such as Eclipse should make exploring, compiling, and running the example code easier

Note

New to SoapUI?

While this chapter demonstrates how to set up basic SoapUI REST and SOAP projects, tests, and assertions, it doesn't cover the typical 'getting started' installation, setup, and overview of SoapUI. So if you are completely new to SoapUI, it might also be worth taking a look at the online SoapUI docs, for example, Getting started at http://www.soapui.org/.

主站蜘蛛池模板: 四会市| 安阳县| 南澳县| 利辛县| 泽库县| 桐城市| 祁连县| 遂平县| 砚山县| 苍梧县| 彭泽县| 湖北省| SHOW| 临沭县| 苏尼特左旗| 杨浦区| 彭阳县| 澄江县| 香格里拉县| 绥芬河市| 长武县| 望奎县| 自治县| 垣曲县| 晋州市| 濉溪县| 十堰市| 茌平县| 剑川县| 山西省| 沾化县| 平果县| 马关县| 靖宇县| 广饶县| 新化县| 米林县| 滦平县| 鹤壁市| 离岛区| 苗栗市|