Descrizione del corso
Il corso si propone di fornirà le basi teoriche e pratiche per la programmazione dei Web Services in ambito Java. E' necesaria la conoscenza di programmazione Java come da programma di livello base, preferibile se già di livello avanzato.
Programma
- Introduzione a Java Web Services
- Panoramica introduttiva
- L’uso delle annotazioni per la realizzazione di servizi web con JAX-WS.
- Elementi di base di un web service: Types, Messages, PortTypes, and Operations
- Binding dei servizi web, Ports: il protocollo SOAP, sintassi dei messaggi SOAP, Envelope/Header/Body; il SOAP 1.1 Binding for WSDL
- Approfondimenti sui messaggi SOAP: SOAP Faults, Attachments, SOAP Messaging and HTTP Binding, SOAP Styles and Encoding
- Descrivere un web service
- L’uso di XML Namespaces e XML Schema
- Il Web Services Description Language (WSDL)
- Il formato e struttura di WSDL Structure
- WSDL to Java Mapping
- Approccio top down e bottom up
- Realizzare il client dal WSDL
- JAXB
- Java Architecture for XML Binding
- Le annotazioni per JAXB
- JAXB e WSDL
- SAAJ
- Introduzione e struttura dei messaggi SAAJ
- SAAJ e DOM
- SOAP Handlers
- Gestione dei pacchetti SOAP tramite Handler
- Logical and Protocol Handler
- Programmazione e configurazione degli Handler
- Bare XML Web Services
- XML Messaging Overview
- JAX-WS Provider
- A SOAP Provider and Source Provider
- XML Clients with Dispatch
- XML/HTTP Messaging with Provider
- Panoramica su REST e JAX-RS
- EJB-Based Web Services
- Breve panoramica su EJB
- Realizzare servizi web tramite EJB, Service Endpoint Interface
- Web Services Security
- Proteggere i Web Services con la BASIC Authentication
- Proteggere il canale di comunicazione con HTTPS