Hi,
We have a web application delivering web services (crud on a postgres database).
Actually, we have a simple webservice design to record keywords in a database.
A DB constraint in this one is that duplicate words are forbidden.
So before the save operation we would like to add a validator implemented by an annotation.(we are open to others suggestions)
Something like this:
@validator(KeyWordvalidaor.class)
..saveWord(String label)…
The WS is already annoted with transactions ones & endpoint ones.
So the validator MUST be embed in this transaction.
We dont want any validator in the webservice itself.
The duty of this validator is to :
- test if the given lavel exists already in the database (the dao& method for that are already there).
- if the label exists, it will raise a Specific Exception which will be converted in the soap response by a soaplfault for the
given exception & a specific soaplfaultcode & message.
- modifing the wsdl ,may be will be required for managing this checked soap fault
- the client which will consume the webservice should have the possibility to detect the exception (wsimport is used to generate classe).
Skills required:
- Soap & Wsdl
- Spring WS & maybe Spring AOP or aspectJ will be required
- basic knowledge on maven( build, process-test-ressources fro the database)
- postgresSql with PGAdmin
- wsImport (maybe)
I can give your more details depending on how you work, are you available etc.