This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
Hi, I have used my own AuthenticationHandler(extends HTTPAuthHandler of Axis), to authenticate all incoming requests, in an application which host multiple web services using Apache Axis 1.4. There is a appropritely defined server-config.wsdd, snippet as follows:- . . <handler name="auth" type="java:X.Y.Z.handlers.authentication.AuthenticationHandler"> </handler> <handler name="http" type="java rg.apache.axis.handlers.http.HTTPAuthHandler"> </handler> . . <service name="getTrades" provider="java:RPC" > <parameter name="className" value="X.Y.Z.service.trade.rpc.TradeExecutionReport"/> <parameter name="allowedMethods" value="getTradeExecutionReport"/>
Problem statement is:- In case of authentication failure, I want to stop the further processing of request and respond back a specific XML message(NOT AxisFault), from AuthenticationHandler itself, containing adequate text: "Authentication Failed due to...xyz".
But I could not figure out any procedure to do this. I dont want to raise AxisFault because it has standard response format.
Putting it in other words: I want to send a response(for client: as if it is coming from the actual service called) from AuthenticationHandler itself, in event of Auth Failure.