Publication date : 01/29/2024

Course : RESTful Web Services, advanced Java development

Practical course - 2d - 14h00 - Ref. WER
Price : 1370 € E.T.

RESTful Web Services, advanced Java development




Web services conforming to the REST architecture style establish interoperability between computers on the Internet. You'll be able to expand your REST knowledge and develop complete RESTful solutions in Java with JAX-RS. In particular, you'll learn about the WADL specification, JSON and OAuth.


INTER
IN-HOUSE
CUSTOM

Practical course in person or remote class
Disponible en anglais, à la demande

Ref. WER
  2d - 14h00
1370 € E.T.




Web services conforming to the REST architecture style establish interoperability between computers on the Internet. You'll be able to expand your REST knowledge and develop complete RESTful solutions in Java with JAX-RS. In particular, you'll learn about the WADL specification, JSON and OAuth.


Teaching objectives
At the end of the training, the participant will be able to:
Mastering the Jersey Plant
Invoking a RESTful service in Java
Handling JSON data in Java
Securing a REST service with JAX-RS

Intended audience
Developers, project managers.

Prerequisites
Basic knowledge of Web architecture and applications. Good knowledge of XML. Very good knowledge of Java programming. Experience in JAX-RS and JAXB development required.

Course schedule

1
Reminders on REST and JAX-RS

  • Review of Representational State Transfer and RESTful architecture concepts.
  • JAX-RS API reminder.
  • Reminders on XML and JAXB.
Hands-on work
Jersey installation, development of a resource class. Development of a complete service.

2
Invoking a RESTful service in Java

  • Use the basic Java API to retrieve a resource.
  • Use Jersey's client API to invoke a RESTful service.
  • Jakarta Commons HTTP Client.
Hands-on work
Invocation of RESTful services by various Java methods.

3
Describing a REST service with WADL or WSDL

  • Introduction to the Web Application Description Language (WADL) specification.
  • Positioning in relation to WSDL 2.0, usable with REST services.
Hands-on work
Analysis of a WADL description of RESTful services. Use of the wadl2java tool.

4
JavaScript Object Notation

  • The benefits of JSON flows in RESTful architectures.
  • JSON data manipulation in Java.
Hands-on work
Development of a RESTful service returning a JSON stream. Invocation of the service and parsing of the result in Java.

5
Securing a REST service

  • Reminders of possible actions at HTTP transport level.
  • Introducing the OAuth protocol for Internet authentication, used by Google, Flickr, Yahoo...
  • Implementation with JAX-RS.
Hands-on work
Securing REST services with OpenAM, OAuth and JAX-RS.

6
Architectural elements

  • The different ways in which REST can be used in an open architecture.