Hi,

On Mon, Jan 24, 2011 at 11:32 PM, Alessio Luna <a.lunarde...@yahoo.it> wrote:
>
> Hi all,
> i have the following systembase on axis2:
> Client java axiom (no stub stuff) ->ServerSide InFlow Handler ->Server java
> axiom
>
> My problem is:
> From Handler i read the Header and check something. If check test result
> false i wish to not call server java at all so i do
> return InvocationResponse.ABORT; This throw and exception like incoming
> message is null and it's ok.
> But the client doesn't recive nothing at all but:
> HTTP/1.1 202 Accepted
> Server: Apache-Coyote/1.1
> Content-Type: text/xml;charset=UTF-8
> Transfer-Encoding: chunked
> Date: Tue, 18 Jan 2011 22:18:33 GMT
>
> 0
>

This is the expected behavior if you abort in between a handler chain.
What you can do is create a AxisFault and throw if your test is
failed.

Then the message will go through the fault chain and you will be able
to return a custom fault message. The AxisFault is caught at
AxisServlet.java : 184 (in servlet transport) .

HTH,
--Pradeep.

> Ok i want to create soap fault message (and i know how to do) but i don't
> know how to send this message back to client!
>
> Thx in advice for help.
>
>
>



-- 
Pradeep Fernando.
http://pradeepfernando.blogspot.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org
For additional commands, e-mail: java-dev-h...@axis.apache.org

Reply via email to