Generating and developing a RESTful web service stub test-first

This recipe shows how to generate and develop a simple RESTful web service stub test-first using TDD. The main SoapUI learning will be how to test a simple RESTful web service defined by a WADL that produces JSON responses. Basic JAX-RS web service development skills using Apache CXF can also be learned here.

Getting ready

The example service is a REST version of the SOAP invoice service from the first recipe. The service is defined by a WADL with the following main properties:

  • WADL: invoice_v1.wadl
  • Service endpoint: http://localhost:9000/invoiceservice/v1
  • Resource: GET /invoice/{id}
  • Produces: application/json

Apache CXF will be used to generate, build, and run the stub web service. See ...

Get SoapUI Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.