No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/main
.gitignore
README.md
pom.xml

README.md

soap-server

=============

Application Java EE utilisant les technologies Web Services SOAP. Elle permet de gérer des acteurs, des films et des rôles.

Technologies

Spring 4.1.1

CXF 3.0.2

Dozer 5.5.1

Hibernate 4.3.6

Spring JPA 1.7.0

HSQLDB 2.3.2

Serveur

Tomcat 8

Outils

IDE Eclipse STS 3.6.2

Utilisation

Une fois installée sur un serveur, le WSDL est accessible depuis ADRESSE_DU_SERVEUR/soap-server/services. Les requêtes sont envoyées à l'adresse : ADRESSE_DU_SERVEUR/soap-server/services/cinema.

Il existe 1 service permettant de gérer les acteurs, les films et les rôles.

Requêtes SOAP

Actor

Create

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.soap_server.rbillard.fr/"> <soapenv:Header/> <soapenv:Body> <ws:createActor> <firstName>Johnny</firstName> <lastName>DEPP</lastName> <birthDate>1963-06-09</birthDate> </ws:createActor> </soapenv:Body> </soapenv:Envelope>

Réponse :

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ns2:createActorResponse xmlns:ns2="http://ws.soap_server.rbillard.fr/"> <return> <id>1</id> <firstName>Johnny</firstName> <lastName>DEPP</lastName> <birthDate>1963-06-09T00:00:00+01:00</birthDate> </return> </ns2:createActorResponse> </soap:Body> </soap:Envelope>

Update

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.soap_server.rbillard.fr/"> <soapenv:Header/> <soapenv:Body> <ws:updateActor> <id>1</id> <firstName>Johnny</firstName> <lastName>DEPP</lastName> <birthDate>1963-06-09</birthDate> </ws:updateActor> </soapenv:Body> </soapenv:Envelope>

Réponse :

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ns2:updateActorResponse xmlns:ns2="http://ws.soap_server.rbillard.fr/"> <return> <id>1</id> <firstName>Johnny</firstName> <lastName>DEPP</lastName> <birthDate>1963-06-09T00:00:00+01:00</birthDate> </return> </ns2:updateActorResponse> </soap:Body> </soap:Envelope>

findOne

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.soap_server.rbillard.fr/"> <soapenv:Header/> <soapenv:Body> <ws:findOneActor> <id>1</id> </ws:findOneActor> </soapenv:Body> </soapenv:Envelope>

Réponse :

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ns2:findOneActorResponse xmlns:ns2="http://ws.soap_server.rbillard.fr/"> <return> <id>1</id> <firstName>Johnny</firstName> <lastName>DEPP</lastName> <birthDate>1963-06-09T00:00:00+01:00</birthDate> <roles> <roles> <firstName>Jack</firstName> <lastName>SPARROW</lastName> <movie> <id>1</id> <title>Pirates of the Caribbean</title> </movie> </roles> </roles> </return> </ns2:findOneActorResponse> </soap:Body> </soap:Envelope>

find

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.soap_server.rbillard.fr/"> <soapenv:Header/> <soapenv:Body> <ws:findActors> <firstName>Johnny</firstName> <lastName>DEPP</lastName> </ws:findActors> </soapenv:Body> </soapenv:Envelope>

Réponse :

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ns2:findActorsResponse xmlns:ns2="http://ws.soap_server.rbillard.fr/"> <return> <id>1</id> <firstName>Johnny</firstName> <lastName>DEPP</lastName> <birthDate>1963-06-09T00:00:00+01:00</birthDate> </return> </ns2:findActorsResponse> </soap:Body> </soap:Envelope>

findAll

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.soap_server.rbillard.fr/"> <soapenv:Header/> <soapenv:Body> <ws:findAllActors/> </soapenv:Body> </soapenv:Envelope>

Réponse:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ns2:findAllActorsResponse xmlns:ns2="http://ws.soap_server.rbillard.fr/"> <return> <id>1</id> <firstName>Johnny</firstName> <lastName>DEPP</lastName> <birthDate>1963-06-09T00:00:00+01:00</birthDate> </return> <return> <id>2</id> <firstName>Orlando</firstName> <lastName>BLOOM</lastName> <birthDate>1977-01-13T00:00:00+01:00</birthDate> </return> </ns2:findAllActorsResponse> </soap:Body> </soap:Envelope>

delete

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.soap_server.rbillard.fr/"> <soapenv:Header/> <soapenv:Body> <ws:deleteActor> <id>1</id> </ws:deleteActor> </soapenv:Body> </soapenv:Envelope>

Réponse :

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ns2:deleteActorResponse xmlns:ns2="http://ws.soap_server.rbillard.fr/"/> </soap:Body> </soap:Envelope>

Movie

create

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.soap_server.rbillard.fr/"> <soapenv:Header/> <soapenv:Body> <ws:createMovie> <title>Pirates of the Caribbean</title> </ws:createMovie> </soapenv:Body> </soapenv:Envelope>

Réponse:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ns2:createMovieResponse xmlns:ns2="http://ws.soap_server.rbillard.fr/"> <return> <id>2</id> <title>Pirates of the Caribbean</title> </return> </ns2:createMovieResponse> </soap:Body> </soap:Envelope>

update

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.soap_server.rbillard.fr/"> <soapenv:Header/> <soapenv:Body> <ws:updateMovie> <id>1</id> <title>Pirates of the Caribbean</title> </ws:updateMovie> </soapenv:Body> </soapenv:Envelope>

Réponse :

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ns2:updateMovieResponse xmlns:ns2="http://ws.soap_server.rbillard.fr/"> <return> <id>1</id> <title>Pirates of the Caribbean</title> </return> </ns2:updateMovieResponse> </soap:Body> </soap:Envelope>

findOne

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.soap_server.rbillard.fr/"> <soapenv:Header/> <soapenv:Body> <ws:findOneMovie> <id>1</id> </ws:findOneMovie> </soapenv:Body> </soapenv:Envelope>

Réponse :

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ns2:findOneMovieResponse xmlns:ns2="http://ws.soap_server.rbillard.fr/"> <return> <id>1</id> <title>Pirates of the Caribbean</title> <roles> <roles> <firstName>Jack</firstName> <lastName>SPARROW</lastName> <actor> <id>1</id> <firstName>Johnny</firstName> <lastName>DEPP</lastName> <birthDate>1963-06-09T00:00:00+01:00</birthDate> </actor> </roles> <roles> <firstName>Will</firstName> <lastName>TURNER</lastName> <actor> <id>2</id> <firstName>Orlando</firstName> <lastName>BLOOM</lastName> <birthDate>1977-01-13T00:00:00+01:00</birthDate> </actor> </roles> </roles> </return> </ns2:findOneMovieResponse> </soap:Body> </soap:Envelope>

find

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.soap_server.rbillard.fr/"> <soapenv:Header/> <soapenv:Body> <ws:findMovies> <title>Pirates of the Caribbean</title> </ws:findMovies> </soapenv:Body> </soapenv:Envelope>

Réponse :

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ns2:findMoviesResponse xmlns:ns2="http://ws.soap_server.rbillard.fr/"> <return> <id>1</id> <title>Pirates of the Caribbean</title> </return> </ns2:findMoviesResponse> </soap:Body> </soap:Envelope>

findAll

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.soap_server.rbillard.fr/"> <soapenv:Header/> <soapenv:Body> <ws:findAllMovies/> </soapenv:Body> </soapenv:Envelope>

Réponse :

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ns2:findAllMoviesResponse xmlns:ns2="http://ws.soap_server.rbillard.fr/"> <return> <id>1</id> <title>Pirates of the Caribbean</title> </return> </ns2:findAllMoviesResponse> </soap:Body> </soap:Envelope>

delete

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.soap_server.rbillard.fr/"> <soapenv:Header/> <soapenv:Body> <ws:deleteMovie> <id>1</id> </ws:deleteMovie> </soapenv:Body> </soapenv:Envelope>

Réponse :

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ns2:deleteMovieResponse xmlns:ns2="http://ws.soap_server.rbillard.fr/"/> </soap:Body> </soap:Envelope>

Role

create

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.soap_server.rbillard.fr/"> <soapenv:Header/> <soapenv:Body> <ws:createRole> <actorId>1</actorId> <movieId>1</movieId> <firstName>Jack</firstName> <lastName>SPARROW</lastName> </ws:createRole> </soapenv:Body> </soapenv:Envelope>

Réponse :

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ns2:createRoleResponse xmlns:ns2="http://ws.soap_server.rbillard.fr/"> <return> <id>1</id> <firstName>Jack</firstName> <lastName>SPARROW</lastName> <actor> <id>1</id> <firstName>Johnny</firstName> <lastName>DEPP</lastName> <birthDate>1963-06-09T00:00:00+01:00</birthDate> </actor> <movie> <id>1</id> <title>Pirates of the Caribbean</title> </movie> </return> </ns2:createRoleResponse> </soap:Body> </soap:Envelope>

delete

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.soap_server.rbillard.fr/"> <soapenv:Header/> <soapenv:Body> <ws:deleteRole> <id>1</id> </ws:deleteRole> </soapenv:Body> </soapenv:Envelope>

Réponse :

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ns2:deleteRoleResponse xmlns:ns2="http://ws.soap_server.rbillard.fr/"/> </soap:Body> </soap:Envelope>

findAll

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.soap_server.rbillard.fr/"> <soapenv:Header/> <soapenv:Body> <ws:findAllRoles/> </soapenv:Body> </soapenv:Envelope>

Réponse :

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ns2:findAllRolesResponse xmlns:ns2="http://ws.soap_server.rbillard.fr/"> <return> <id>1</id> <firstName>Jack</firstName> <lastName>SPARROW</lastName> <actor> <id>1</id> <firstName>Johnny</firstName> <lastName>DEPP</lastName> <birthDate>1963-06-09T00:00:00+01:00</birthDate> </actor> <movie> <id>1</id> <title>Pirates of the Caribbean</title> </movie> </return> <return> <id>2</id> <firstName>Will</firstName> <lastName>TURNER</lastName> <actor> <id>2</id> <firstName>Orlando</firstName> <lastName>BLOOM</lastName> <birthDate>1977-01-13T00:00:00+01:00</birthDate> </actor> <movie> <id>1</id> <title>Pirates of the Caribbean</title> </movie> </return> </ns2:findAllRolesResponse> </soap:Body> </soap:Envelope>

findOne

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.soap_server.rbillard.fr/"> <soapenv:Header/> <soapenv:Body> <ws:findOneRole> <id>1</id> </ws:findOneRole> </soapenv:Body> </soapenv:Envelope>

Réponse :

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ns2:findOneRoleResponse xmlns:ns2="http://ws.soap_server.rbillard.fr/"> <return> <id>1</id> <firstName>Jack</firstName> <lastName>SPARROW</lastName> <actor> <id>1</id> <firstName>Johnny</firstName> <lastName>DEPP</lastName> <birthDate>1963-06-09T00:00:00+01:00</birthDate> </actor> <movie> <id>1</id> <title>Pirates of the Caribbean</title> </movie> </return> </ns2:findOneRoleResponse> </soap:Body> </soap:Envelope>

update

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.soap_server.rbillard.fr/"> <soapenv:Header/> <soapenv:Body> <ws:updateRole> <roleId>1</roleId> <actorId>1</actorId> <movieId>1</movieId> <firstName>Jack</firstName> <lastName>SPARROW</lastName> </ws:updateRole> </soapenv:Body> </soapenv:Envelope>

Réponse :

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ns2:updateRoleResponse xmlns:ns2="http://ws.soap_server.rbillard.fr/"> <return> <id>1</id> <firstName>Jack</firstName> <lastName>SPARROW</lastName> <actor> <id>1</id> <firstName>Johnny</firstName> <lastName>DEPP</lastName> <birthDate>1963-06-09T00:00:00+01:00</birthDate> </actor> <movie> <id>1</id> <title>Pirates of the Caribbean</title> </movie> </return> </ns2:updateRoleResponse> </soap:Body> </soap:Envelope>