File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Logical Data Validation in Axis2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Logical Data Validation in Axis2" Watch "Logical Data Validation in Axis2" New topic
Author

Logical Data Validation in Axis2

Nathan Hook
Ranch Hand

Joined: Jan 10, 2005
Posts: 81
We need to do logical data validation for our published web services and we're not exactly sure where to put this logic.

For example we have a web service that will add new users to our system, but each user must have a unique username. So when adding a new user we must check to see if the new username is available (requiring a database hit). If not, we need to send be an error or a fault.

I was thinking of using an Axis2 Handler for the job, but I don't seem to be able to return an error or a fault inside of the Handlers.

Any friendly help or a push in the right direction is appreciated.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Logical Data Validation in Axis2
 
Similar Threads
Basic SOAP fault question
How to create UsernameToken in Java WS client to compatble with .Net (.asmx) web service
Web Service Client: Can't read fault instead an IOException is read.
Text Box Validation
Axis2 - issue in getting the faultmessage and memory issue