Kiran - have you considered embedding the custom message inside the SOAP fault as a detail element or as a custom exception?
/Chris ---------- Original Message ---------------------------------- From: "Pathuru, Kiran" <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] Date: Mon, 22 Mar 2004 15:10:03 +0100 >I have a webservice which works based on sessions. The user first need to >login and then onwards can make the calls. > >In one of my request handlers, now I am checking what method the user is >requesting and then see whether >the user has already logged in successfully, otherwise I will raise an Axis >Fault. But my client don't like >this and he want to see a returnMessage like login failed or session >expired. Can anyone suggest me how can I do this? > >Is there anyway that I can construct a SOAP message in my request handler >and send it back to the caller instead of forwarding it to the service? I >think I can solve my problem in this way but don't know how to do it. Any >help will be appreciated. > >Thanks in Advance, >kiran pathuru >