axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject Re: Some help with the usage and notion of FAULT messages!
Date Mon, 17 Feb 2003 10:07:42 GMT
Hi Paris!
Good to know there's another Greek on the list! I think that if your 
service will be used by you and only you (that's usually what happens 
with final year projects :) ), meaning that you'll be developing both 
the provider and the requestor sides, all you have to do is code in 
some logic to handle your "error string". That's for the easy part! If, 
on the contrary, you mean to develop a service that will be used by all 
kinds of clients-requestors you need to find a more standardized way of 
exposing any errors your service might encounter. And that is, as 
you've already imagined, through the fault element of the wsdl doc.

All the above express my knowledge of the WS architecture. Correct me 
if I'm wrong...


----- Original Message -----
Από: "Apostolopoulos Paris" <>
Ημερομηνία: Δευτέρα, Φεβρουάριος 17, 2003 1:54π.μ.
Θέμα: Some help with the usage and notion of FAULT messages!

> Hi!
> User status : AXIS newbie
> Well I am developing some 'simple' web services as part of my 
> final year
> project! I am using a 100% RPC approach! I have a service that is
> responsible of making some sort of user validation. The client invokes
> the Logging service passing a username and password. The service 
> checksits credentials and if the processing is succesful returns 
> an encrypted
> string that is going to be used for the invocation of other
> services,like a passport lets say :) . Ok.. my newbie question is ,
> alright and what if the credentials are bad..and the logging is non
> valid. Is it my responsibility  as a developer that should take 
> care of
> it, I mean that I should return a string saying 'ERROR' and the client
> side.(which is implemented by me) should have the code to check the
> string , or SHOULD i sent a FAULT response. From what i have red till
> now, a FAULT message is only associated with exception occuring at the
> AXIS engine as overal? Can i use FAULT messages to deliver businees
> logic to my client? or the FAULT messages are only for technical
> problems in the request/response flow! 
> If yes, how can i send as a response a FAULT message ? through a 
> handleri suppose in the response flow?
> Thank you for your time
> A.P

View raw message